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 放到源文件的最上面。

 

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

 

posted on 2017-07-27 17:10  chenzc  阅读(1547)  评论(0编辑  收藏  举报

导航