解决方法有两个:

1. 在预编译头文件stdafx.h里(在没有include任何头文件之前)定义下面的宏:

       #define _CRT_SECURE_NO_DEPRECATE

2. 将sprintf函数替换为sprintf_s函数

相关文章:

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