10
fopen已弃用警告
在Visual Studio 2005 C ++编译器上,当我的代码使用fopen和此类调用时,出现以下警告。 1>foo.cpp(5) : warning C4996: 'fopen' was declared deprecated 1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' 1> Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 我该如何预防?