方法1 Project Properties > Configuration Properties > C/C++ > General > SDL checks关掉 方法2 头部添加#pragma warning(disable: 4996)