L
liaoo
Dear all,
I have a question about using cout<<...
In standard C, I can use printf("%x",...) to print "hex" number. But in
Watcom C++, when using cout<<, I got the "decimal" representation !
Ex. a = 0x80000004
if ( using printf("%x",a) ) then I got "80000004" on screen
if ( using cout<<a ) then I got "2147483652"
Both results are correct but I want the former one...
Do i add some parameters together with cout to achieve my goal ?
Thanks !
I have a question about using cout<<...
In standard C, I can use printf("%x",...) to print "hex" number. But in
Watcom C++, when using cout<<, I got the "decimal" representation !
Ex. a = 0x80000004
if ( using printf("%x",a) ) then I got "80000004" on screen
if ( using cout<<a ) then I got "2147483652"
Both results are correct but I want the former one...
Do i add some parameters together with cout to achieve my goal ?
Thanks !