原文:错误: error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. 的处理方法

错误: error C : strcpy : This function or variable may be unsafe. Consider using strcpy s instead. 的处理方法 为什么会报这个错 因为strcpy这个函数不安全,即会造成栈溢出。 在VS 下如果使用strcpy有时候会报这个错误,解决方法是找到该项目的属性: 在预处理定义中添加: CRT SECURE N ...

2019-06-07 19:46 0 534 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM