vs2017 C4996 错误

严重性    代码    说明    项目    文件    行    禁止显示状态
错误    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.    4.20    d:ptrstr.cpp    24    

 

 2, 或者把: #define _CRT_SECURE_NO_WARNINGS 放到源文件的最上面。

生新编译,生成新的可执行文件既可。

原文地址:https://www.cnblogs.com/chenzc/p/7245969.html