'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

VS认为 scanf(); 不安全。

解决方法1:

scanf_s();	//用scanf_s();替换

解决方法2:添加预编译

#define _CRT_SECURE_NO_WARNINGS

解决方法3:

#param warning(disable:4996)

相关文章:

  • 2021-07-19
  • 2022-01-10
  • 2021-10-05
  • 2021-04-16
  • 2021-12-25
  • 2021-11-05
  • 2021-10-14
猜你喜欢
  • 2021-11-06
  • 2021-04-11
  • 2021-04-18
  • 2021-08-19
相关资源
相似解决方案