Formatting in C++
John Wildberger
wildberger-iRg7kjdsKiH3fQ9qLvQP4Q at public.gmane.org
Fri Dec 26 01:24:32 UTC 2003
How can I use cout <<... to perform the equivalent to
printf( " %.2X ",buf[i] );
when buf[] was declared as uint8_t buf[] ;
and the content of buf[i] are hex numbers like 0x5e, or 0xfd, etc ?
I think that I would have to include #include <iomanip> ,but I am at a loss
how to accomplish the formatting.
John
--
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