C++ book

I'm looking for a good C++ book that is:
- Not too difficult
- Easy examples
- Self-contained examples – no need to understand another example before an example
- Tips
- Cross reference

The book I have does not have any comparison table of STL containers <-- not a good book.

Thanks,
what is your level or experience
I am not really sure. I guess my level should be:
- beginner for C++
- intermediate for C , but forgot some about it.

It will be great to have a book that, for example, gives me a quick advice (in a comparison table format) why I should use vector or queue.


Last edited on
The best books that I know of are:

The C++ Programming Language by Stroustrup (the creator of C++).

C++ Primer by Lippman (also a C++ pioneer)

Accelerated C++ by Koenig and Moo (probably the easiest, but is good because it starts right off with strings, vectors, etc, i.e., actual C++ and not just C!)

Also good, but probably after one of the above books, are:

Effective C++
Exceptional C++
Inside the C++ Object Model
The Art of C++


Also, C++ FAQ Lite (online) is pretty good:
http://parashift.com/c++-faq-lite/index.html
Hello pccX,

I would suggest you to begin from here http://www.cplusplus.com/doc/tutorial/exceptions/
Try it untill constructors section.
I would say if you are a C++ beginner, try to get "Exploring C++ by Ray Lischner". This book is way different than any other book. It divides the whole book in to explorations where you enjoy each and every part of it.
closed account (S6k9GNh0)
http://www.cplusplus.com/doc/tutorial/

Online documentation is good. But I SERIOUSLY do not recommend it for learning. Though it's easy to understand, some people do not accept some material as easy as others. The books made are simply an excess of understandment of the people who are reading.
Thanks for your suggestions.

http://www.cplusplus.com is very good. If there are a book like this web, it will be great because I like to add my own note in my book.
I recommend How to Program C++ Sixth Edition (Deitel). It meets all of your requirements and includes tips on avoiding errors, best practices, etc... Tons of exercises and examples and the text covers advanced topics as well as exposure to BOOST and OGRE3D. The book focuses on OOP/OOD from the beginning with an 8 or 9 chapter long case study utilizing UML to design and write a program. The appendix also contains excellent resources for dealing with Legacy code, number systems, debugging, etc...
closed account (z05DSL3A)
Bjarne Stroustrup's Programming -- Principles and Practice Using C++
Addison-Wesley ISBN 978-0321543721. December 2008.
http://www.research.att.com/~bs/programming.html
Sorry for the small bump of this thread, but how about learncpp.com? I'm wondering if anyone has experience with them. Are these good tutorials to learn?
Topic archived. No new replies allowed.