用#pragma预处理命令禁止此类警告,位置在#include后即可
如:#pragma warning(disable:4996)
错误 C4996 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. ConsoleApplication1...........