1. 程式人生 > >error C4996: 'sprintf': This function or variable may be unsafe.Consider using sprintf_s instead.

error C4996: 'sprintf': This function or variable may be unsafe.Consider using sprintf_s instead.

直接使用微軟推薦的修改後的函式sprintf_s, 其他類似的函式報錯也同樣

亦可以

選項Project   |   Configuration   Properties   |   C/C++   |   Preprocessor   |   Preprocessor   Definitions   
  新增_CRT_SECURE_NO_WARNINGS