Ok, honestly... do NOT buy the C++ Primer.
I bought it following these recommendations and already regretted it after a day or two...
It is badly structured and neither a book for the absolut beginner nor any advanced reading. The first function is defined on page 225. Up to that point a lot of functions are used, even the first 'class' written, without defining a single function... In fact: the Sales_item class used in the first chapter is not explained until chapter 14 (page 505+).
Because of this weird structure, there are a lot of vague explanations about what a class is, what inheritance is etc. with a friendly reference "read more about this in 300 pages".
If you want a proper order of things you should read the book something like this:
Code:
Chapter 1
Chapter 2
chapter 6
half of chapter 7
chapter 3,4,5
chapter 12
and so on......
All in all its a very bad beginners book. It might be ok as a reference book if you already know some c++ but don't expect to find everything you are looking for. There are some advanced topics like custom allocator classes but other things are left out.
The only book i can recommend so far is "Professional C++" by Nicholas A. Solter and Scott J. Kleper ISBN 0-7645-7484-1.
It is a bit more advanced, but there are very nice things about style of code etc. in there. Worth a look if you already know some c++ (or c!) (there is a pdf copy of this book somewhere on the web

).
EDIT: I don't know where i've gotten this from, but somewhere on the web there is a collection of "132 C and C++ ebooks". This collections contains both the C++ Primer (4th ed.) and Professional C++ (2005) as well as a lot of trash and maybe a few more good books?!