解决’strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead. To disable dep

运行程序时语法正常,但是显示出
’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.
如图
这个问题的解决方法是,在属性菜单里添加如图的预处理定义即可。在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/NikoHsu/article/details/105792228