出现这个错误时,是因为strcpy函数不安全造成的溢出。

解决方法是:找到【项目属性】,点击【C++】里的【预处理器】,对【预处理器】进行编辑,在里面加入一段代码:_CRT_SECURE_NO_WARNINGS。

图示:

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

 

参考:https://blog.csdn.net/y609532842/article/details/49705973

 

相关文章:

  • 2021-04-06
  • 2022-12-23
  • 2022-01-07
  • 2021-08-24
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
猜你喜欢
  • 2021-11-13
  • 2021-10-29
  • 2022-12-23
  • 2021-05-07
  • 2021-04-09
相关资源
相似解决方案