9 Jul
2010
9 Jul
'10
3:22 p.m.
On 7/9/2010 10:09 AM, Lloyd wrote:
changing int to simpe "unsigned char" did not work (It prints '0-'). I changed it to
ss<<boost::format("%|02X|")%(int)(unsigned char)(a[0]);
Now it works. But looks dirty, is it the right way?
Change the declaration of a from char a[10]; to unsigned char a[10];