Why I love C++ so much.
Václav Haisman
v.haisman@sh.cvut.cz
Thu Feb 21 06:32:00 GMT 2008
Dave Korn wrote, On 20.2.2008 21:15:
>
>
> Because writing
>
> hex << setw (8) << setfill ('0') << ((uintptr_t)(x)) << dec << setfill (' ')
>
> is just soooooo much easier and more self-consistent and less typing than
>
> "%08x", x
C'mon, while it is slightly longer than the sprintf() version for such simple
thing as printing single hexadecimal number, there are plenty of things
sprintf() just doesn't offer that you can do with C++ IO streams.
>
>
>
> <grrrspit>
>
> cheers,
> DaveK
--
VH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-talk/attachments/20080221/50cd8c55/attachment.sig>
More information about the Cygwin-talk
mailing list