可能重复:
fopen deprecated warning
在创建项目时,我遇到了这个错误:
错误C4996:'fopen':此函数或变量可能不安全。考虑使用fopen_s代替。要禁用弃用,请使用_CRT_SECURE_NO_WARNINGS。详细信息请参见在线帮助。 1 GT; c:\ program files(x86)\ microsoft visual studio 11.0 \ vc \ include \ stdio.h(218):参见'fopen'的声明
但是,我还将stdio.h和fstream作为标题包含在内,因为其他人告诉我这样做。 我仍然遇到错误。
以下是错误部分的代码:
任何人都可以帮助我吗?