鱼C论坛

 找回密码
 立即注册
查看: 1903|回复: 6

[已解决]C语言求助问题贴

[复制链接]
发表于 2019-5-16 20:30:53 | 显示全部楼层
开头加一句
  1. #define _CRT_SECURE_NO_WARNINGS
复制代码
也行
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2019-5-16 21:33:13 | 显示全部楼层
974464395 发表于 2019-5-16 21:19
这是不显示那个警告把

这是让系统自己帮你改好
  1. #ifndef _CRT_INSECURE_DEPRECATE
  2.     #ifdef _CRT_SECURE_NO_WARNINGS
  3.         #define _CRT_INSECURE_DEPRECATE(_Replacement)
  4.     #else
  5.         #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
  6.             "This function or variable may be unsafe. Consider using "        \
  7.             #_Replacement                                                     \
  8.             " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " \
  9.             "See online help for details.")
  10.     #endif
  11. #endif
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-9-19 05:21

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表