出现这种警告的原因是因为我们没有使用安全的字符串处理函数。如果想屏蔽这种警告,可以使用:

错误	1	error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use . See online help for details.

还可以使用其它的方法,参考:

https://www.cnblogs.com/gb2013/archive/2013/03/05/SecurityEnhancementsInTheCRT.html

 

相关文章:

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