Thanks Mr. Wizard. These are definitely bugs of some kind. Weirdness.
Thanks Mr. Wizard. These are definitely bugs of some kind. Weirdness.
"The mind, like a parachute, only functions when open."
Inv... Do you check your pm's???
I... think.. you.. have.. one!
What is C++?
It's not a bug.. the output doesn't appear until it's flushed out. endl flushes the output. Whether or not the output will appear before the while loop is undefined by the standard without the endl (or a flush()).
And this doesn't happen when you use a namespace because...
Edit: Ok not bugs, but a difference between definitions of some kind in iostream.h and std::iostream?
Last edited by Invincible; 05-26-2002 at 11:47 PM.
"The mind, like a parachute, only functions when open."
I never have undestood "namespaces".
ive tried
using namespace std;
in borland but it make an error...
What is C++?