tags:

views:

116

answers:

4

Possible Duplicates:
The Definitive C++ Book Guide and List
New to C++, help me get started

I'm 15 years rusty on C++; STL was relatively new then. I've done mostly Java since then, and probably have to refresh pointers and memory allocation.

I was thinking of picking up the newer version of Stroustrup's C++ book, and reading cover to cover; what else should I do to head towards professional quality code?

+4  A: 

For what it's worth, I picked up "The C++ Standard Library" by Josuttis and it has some great information for the STL.

jdangelo
That book is a little more readable. Stroustrup is a good reference but your suggestion is better as far as reading through.
Chance
+3  A: 

You want to do a lot more than learn about pointers and memory allocation. People write C++ much differently from when you did in 1995.

I don't think The C++ Programming Language is a good book to learn things in general. It's written in more of a reference style.

Look at this question for an excellent book list. Start with something like Accelerated C++ and pick up other stuff as you go along.

David Thornley
+1  A: 

I like the C++ FAQs. Specifically make sure you understand

  1. Default constructor, copy constructor, destructor, operator= (what defaults do, when you should define them, etc)
  2. Resource Acquisition is Initialization (RAII)
  3. Using smart pointers (look at boost)
  4. Exception safety

Those are just killer if you don't get it.

Lou Franco
Great link, thank you!
Dean J
+2  A: 

Re-read Meyer's Effective C++ and More Effective C++, which show how to avoid about 90 C++-specific coding mistakes.

ChrisW
HEY !! Mine has only 85, need to buy the new one. Damn you ChrisW :) !!!!
DumbCoder