Thanks Mr. Wizard. These are definitely bugs of some kind. Weirdness.
Printable View
Thanks Mr. Wizard. These are definitely bugs of some kind. Weirdness.
Inv... Do you check your pm's???
I... think.. you.. have.. one!
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?
I never have undestood "namespaces".
ive tried
using namespace std;
in borland but it make an error...