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. C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(211) : 参见“fopen”的声明
解决方案:点击项目属性-> c/c++ -> 预处理器 -> 点击预处理器定义,加入_CRT_SECURE_NO_WARNINGS,即可