
25 Dec
2003
25 Dec
'03
5:24 p.m.
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