错误 C4996 ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_s instead

当运行C程序出现这种问题的解决办法 C4996 ‘strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead
在这里插入图片描述
办法:在项目–》属性—》C/C+±–>预处理器定义:添加上_CRT_SECURE_NO_WARNINGS
在这里插入图片描述
问题就解决了

猜你喜欢

转载自blog.csdn.net/qq_41977843/article/details/130755316
今日推荐