'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

http://stackoverflow.com/questions/14386/fopen-deprecated-warning

将_CRT_SECURE_NO_DEPRECATE加入,如下图

'fopen' was declared deprecated_c++