VS2015 error c4996: 'fopen': This function or variable may be unsafe

问题:

      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/c++  =》预处理器=》点击预处理器定义,编辑,加入_CRT_SECURE_NO_WARNINGS

猜你喜欢

转载自blog.csdn.net/qq_38676868/article/details/89922095