- 📚 相关推荐文章
- sscanf: This function or variable may be unsafe.Consider using scanf 推荐
- warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you me 推荐
- function()默认参数中ReferenceError Cannot access ‘a‘ before initialization的解决方法 推荐
- CSS 函数 Function 推荐
- 分析Not enough variable values available to expand ‘xxx‘ 推荐

‘strcpy‘: This function or variable may be unsafe. Consider using strcpy
哈哈,三年前的问题了,当年还傻傻的不知道怎么办,今天写代码突然想起来了,记录一下。
错误:'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加到图中对应的位置即可。
👁️ 阅读量:0
© 版权声明:本文《‘strcpy‘: This function or variable may be unsafe. Consider using strcpy》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686556706a291215.html。