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

来源:赵克立博客 分类: C/C++ 标签:C/C++c++错 误发布时间:2014-07-17 12:07:00最后更新:2014-08-12 02:07:31浏览:3533
版权声明:
本文为博主原创文章,转载请声明原文链接...谢谢。o_0。
更新时间:
2014-08-12 02:07:31
温馨提示:
学无止境,技术类文章有它的时效性,请留意文章更新时间,如发现内容有误请留言指出,防止别人"踩坑",我会及时更新文章

错误代码:

error C4996: Function call with parameters that may be unsafe – this call relies on the caller to check that the passed values are correct

解决方法:1

项目 =》属性 =》c/c++  =》预处理器=》点击预处理器定义,编辑,加入_CRT_SECURE_NO_WARNINGS,即可。

解决方法:2

在头文件中添加

#pragma warning(disable : 4996)


微信号:kelicom QQ群:215861553 紧急求助须知
Win32/PHP/JS/Android/Python