VS报错strcpy不安全
作者:互联网
环境:
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
标签:DEPRECATE,SECURE,CRT,NO,C++,VS,报错,strcpy 来源: https://www.cnblogs.com/zhanghad/p/12819460.html