1.Project Properties > Configuration Properties > C/C++ > General > SDL checks关掉其他方法:2.#pragma warning(disable: 4996)3。/wd 4996原blog http://blog.csdn.net/u013037007/article/details/42198665