#pragma warning(disable: n)将某个警报置为失效
作者:互联网
用#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...........
标签:ConsoleApplication1,sscanf,SECURE,disable,pragma,warning 来源: https://www.cnblogs.com/Archimedes/p/14831331.html