This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
Re: Why I love C++ so much.
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-talk at cygwin dot com
- Date: Thu, 21 Feb 2008 11:27:54 +0100
- Subject: Re: Why I love C++ so much.
- References: <00b001c873fd$58137750$2e08a8c0@CAM.ARTIMI.COM> <47BD1AF4.6010602@sh.cvut.cz>
- Reply-to: cygwin-talk at cygwin dot com
- Reply-to: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
On Feb 21 07:32, V?clav Haisman wrote:
> 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.
Really? Show me an example which isn't much harder to understand than
the equivalent C code.
Corinna