vs2019中使用freopen、fopen、sprintf等函数总是出现安全问题:
error C4996: ‘xxxxx’: This function or variable may be unsafe. Consider using xxxxxx instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

解决方法
(1)打开项目里的属性
如何解决vs2019中freopen等函数报错问题
(2)配置属性——C/C++——预处理器——预处理器定义中加入一条指令:_CRT_SECURE_NO_WARNINGS,确认即可。
如何解决vs2019中freopen等函数报错问题

相关文章:

  • 2021-07-03
  • 2022-12-23
  • 2018-12-22
  • 2021-08-11
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-04
  • 2021-09-14
  • 2022-03-04
  • 2022-12-23
  • 2021-10-09
  • 2021-09-22
相关资源
相似解决方案