tags:

views:

93

answers:

3

I am a c# developer which finds himself having to relearn c++. The last time I programmed in c++ was in school and am looking for good books as a refresher. I want something that assumes previous programming exposure and gets straight to the point. Is there a book similar to K&R for c++? I know the language is bloated so a book that covers a subset of c++ would be ideal.

+2  A: 

I don't know about a book, but this guide seemed to help me out a lot. It's pretty concise and to the point. For a concise book on the C language (which helps out a lot with C++), I'd check out The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie.

helixed
+2  A: 

I still would go with THE book.

bitbonk
Personally I think 'The C++ Programming Language' is far too dense for someone trying to learn C++ in the early stages. You should really only read this when you are quite comfortable with the language and are ready to start comprehending the edge cases and esoteric features (which is mainly what the book covers in my opinion).
radman
+1  A: 

If your trying to relearn c++ then you should probably focus on the language features that set it apart from others. In my opinion this is the Standard Template Library (STL), vectors, strings, iostreams, generic algorithms all fall under this category and are what you should be using to maximise your use of c++.

For this purpose you can't go past The C++ Standard Library A Tutorial and Reference, this is my most used c++ book and I regularly refer to it.

As far as basic c++ syntax goes most books should give you a good grounding and if your coming from c# you should have a reasonable handle on inheritance.

C++ is really 3 things:

  • the STL (as mentioned previously).
  • Inheritance and Classes
  • Templates (generic programming)

THE book for templates is C++ Templates the Complete Guide if your interested.

radman