Who would deprecate stdio.h?!
Good point. :)
In file included from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/c.4.2/backward/iostream.h:31,
from test.cpp:2:
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated <iostream.h>. To disable this warning use -Wno-deprecated.
My memory was off on stdio (that won't generate the deprecation warning), but since there is a cstdio, it wouldn't be a bad idea to use that, as it appears to be more modern. (See
the c++ standard for more information.) The behavior between cstdio and stdio.h may be different. See this, for instance:
160) The ".h" headers dump all their names into the global namespace, whereas the newer forms keep their names in namespace std. Therefore, the newer forms are the preferred forms for all uses except for C++ programs which are intended to be strictly compatible with C.
Thanks for the sanity check. ;) -- Paul