【转】VS2013中如何解决error C4996: 'fopen'问题
原文網(wǎng)址:http://jingyan.baidu.com/article/ce436649fd61543773afd32e.html
今天編寫控制臺應(yīng)用程序時出現(xiàn)如下錯誤
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.0\vc\include\stdio.h(211) : 參見“fopen”的聲明
?
快速解決方法如下
工具/原料
- vs2013
方法/步驟
在工程文件1處右擊,選擇2
然后彈出文件的屬性頁,單擊1“預(yù)處理器”,再單擊2打開預(yù)處理器如下圖
將“_CRT_SECURE_NO_WARNINGS”復(fù)制在以下紅色框內(nèi),然后確定再單擊應(yīng)用即可。
問題解決
問題解決了就可以進行接下來的工作了
轉(zhuǎn)載于:https://www.cnblogs.com/wi100sh/p/4835352.html
總結(jié)
以上是生活随笔為你收集整理的【转】VS2013中如何解决error C4996: 'fopen'问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 电脑w ndows无法自动修复,wind
- 下一篇: JAVA实现网页版斗地主_使用Java实