选项Project | Configuration Properties | C/C++ | Preprocessor | Preprocessor Definitions
添加_CRT_SECURE_NO_DEPRECATE和_SCL_SECURE_NO_DEPRECATE
warning C4996: 'sprintf': This function or variable may be unsafe
原文:http://www.cnblogs.com/JackKing-defier/p/5242142.html