libstdc++/8469: Obsolete iostream.h and fstream.h?
bkoz@gcc.gnu.org
bkoz@gcc.gnu.org
Mon Nov 11 15:10:00 GMT 2002
Synopsis: Obsolete iostream.h and fstream.h?
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Mon Nov 11 15:10:09 2002
State-Changed-Why:
This is not a bug.
If you'd like to use the C++ files like <iostream>, you'll have to use namespace std. Like so:
std::cout << "hello world" << std::endl
or
using namespace std;
cout << "hello, world" << endl;
If you'd like to use the deprecated .h include files, like <iostream.h>, you don't need to use namespace std as everythig is in the global namespace.
All this and more are described in most into to C++ textbooks.
best,
benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8469
More information about the Gcc-bugs
mailing list