P
Paul Davis
I have some simple test code, which is copied pretty much verbatim
from Josuttis (although he doesn't give complete examples):
#include <iostream>
main() {
cout << hex << 1 << endl;
std::cout << std::ios::hex << 1 << std::endl;
}
That's the whole program. The first line produces the correct output
('1'), but the second line produces '401'. Can anyone tell me what's
going on here? This is on gcc 3.3.
Many thanks
Paul
______________________________________
To get a valid mail address: s/m@/m1@/
from Josuttis (although he doesn't give complete examples):
#include <iostream>
main() {
cout << hex << 1 << endl;
std::cout << std::ios::hex << 1 << std::endl;
}
That's the whole program. The first line produces the correct output
('1'), but the second line produces '401'. Can anyone tell me what's
going on here? This is on gcc 3.3.
Many thanks
Paul
______________________________________
To get a valid mail address: s/m@/m1@/