环境:
VS2019 C++11 win32
错误信息:
C4996: ‘strcpy’: This function or variable may be
unsafe. Consider using strcpy_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
解决方法:
(打开)
项目->属性->C/C++->预处理器->预处理器定义
(添加)
_CRT_SECURE_NO_DEPRECATE
_CRT_NONSTDC_NO_DEPRECATE
本文参考链接:https://www.cnblogs.com/xihong2014/p/14750154.html