今天编写控制台应用程序时出现如下错误
error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>f:program files (x86)microsoft visual studio 12.0vcincludestdio.h(211) : 参见“fopen”的声明
快速解决方法如下