Formatting in C++ (fwd)

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Fri Dec 26 20:41:39 UTC 2003


On Fri, 26 Dec 2003, Jing Su wrote:

> My appologies... I double checked and realized I copied the code
> incorrectly.  Heh. Should've used cut&paste instead of re-typing it.
>
> The line should read:
>
> std::cout << setw(2) << std::hex << (unsigned it)buf[i];

er, hex is not in std:: it requires #include <iomanip.h>

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list