On Mar 13, 8:44 am, "mlimber" <mlim...@gmail.comwrote:
I'd suggest you get _Accelerated C++_ by Koenig and Moo. It will teach
you the right way from the ground up (and help you unlearn some of the
C practices that may hinder your C++).
If there are any C practices that need to be "unlearned" they are
probably bad habits in C, also. My advice to C programmers (of which I
am one) is to focus on what you can do *easily* in C++ that is awkward
in C. If the interest is academic "I want to learn C++" then this is a
great approach.
If the interest is specific: "I need to refactor some code that uses
STL, with a custom allocator and it all looks like gibberish to me,"
then a more targeted approach is useful.
Either way, good C++ is a simplification of good C, and most C
programmers I know who have made the transition give this sigh of
satisfaction when they understand C++: "Ah, I always wanted something
that would persist type across a generic interface." or "Ah, I always
wanted something that would allow rigorous encapsulation AND automatic
allocation." etc. etc.