Quote:
I asked about what was wrong with has namespace directives????
And it is not always iostream.h for the record. Many systems now drop the .h on a lot of the system libraries. It really depends on the system and compiler.
Actually, on *every* compiler I've ever used (including MSVC, Dev C++, gcc, xlC, Metroworks, etc., iostream.h works. They didn't change the system libraries, they simply changed the way that the compiler interprets the #include statement. As for dropping the .h, most compilers will only allow this if you use the using namespace directive. Most of what I've read lately about ANSI C++ standards is that the new "standard" is to use the using directives and drop the .h.