$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] boost::format, print hex
From: Lloyd (lloyd_at_[hidden])
Date: 2010-07-09 10:21:25
Hi,
With the following program I am trying to print the hex of "a". But it is not printing it correctly. I have gone through the boost format sysntax specification. But I dont have any clue, what am I doing wrong?
char a=0x11;
stringstream ss;
ss<<boost::format("%|02X|")%a;
cout<<ss.str()<<endl;
Thanks a lot,
Lloyd
______________________________________
Scanned and protected by Email scanner