[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] looking for a good C++ book for an experienced C programmer.
- Subject: [ale] looking for a good C++ book for an experienced C programmer.
- From: mike at trausch.us (Michael B. Trausch)
- Date: Wed, 18 Aug 2010 13:02:49 -0400
- In-reply-to: <1282150125.2270.38.camel@cfowler-desktop>
- References: <[email protected]> <1282148641.2270.35.camel@cfowler-desktop> <1282150125.2270.38.camel@cfowler-desktop>
On Wed, 2010-08-18 at 12:48 -0400, Chris Fowler wrote:
> One thing that would be cool is a book on how to do things in C++ that
> you would do in C.
>
> For example, I still use stdio.h in C++ when I could be using iostream
> but I know so much about stdio.
Well, you should "#include <cstdio>" unless you have a really old C++
compiler, but whatever... :-)
C++'s standard library *is* rather nice. You can do all sorts of things
with streams and files and strings even that are just plain natural
feeling. That said, I have the same gripe about C++ as I do about C:
there's an awful lot of repetition because you have to create header
files yourself. It would seem logical that something as powerful as
today's C compilers could use decorations on
structures/functions/classes/methods/typedefs/whatever to build
the .h/.hxx file for you...
--- Mike