Author: BobRBobR Date: May 24, 2007 10:21
barcaroller music.net> wrote in message...
>
> 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?
What Pete said.
But, for a few dollars more, there is another way:
|