哈哈,三年前的问题了,当年还傻傻的不知道怎么办,今天写代码突然想起来了,记录一下。
错误:'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_WARNINGS加到图中对应的位置即可。