<iostream> should be <iostream.h> isn't exactly correct. <iostream.h> is deprecated in favor of using namespaces. instead of doing:
using namespace std...
why don't you just do
using std::cout;
using std::cin;
using std::endl;
In other words, only call the objects from the namespace you absolutely need. The whole
reason <iostream.h> is deprecated is so you can use the namespace in this manner. Any
decent optimizing compiler should strip out unneeded objects anyway, but this enforces that
for any compiler that doesn't. Just thought I would mention this.
Happy Hacking




Reply With Quote