When I use an iostream manipulator in a cout statement, it seems to affect
all subsequent cout statements.
cout << x << endl; // dec by default
cout << hex << x << endl; // hex
cout << x << endl // still hex
Is there a way I can have manipulators affect only the "current" cout
statement?
Comment