问题1: error C4996: error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 解决办法: 在该文档中添加: 添加在首行,否则可能无效_CRT_SECURE_NO_WARNINGS直接在错误行中复制 #define _CRT_SECURE_NO_WARNINGS