Choosing a good c++ book...

I want to start learning c++, so I want to find a good book for a start. I heard of a book called C++ How to program for Paul Deitel and Harvey Deitel. Is this a bad book, because it is included as a bad book in this list http://www.cs.technion.ac.il/users/yechiel/CS/BadBooksC+C++.html#DeitelCPP . If so, can anyone recommend a good book for a beginner ?
Try reading through this first:
http://www.cplusplus.com/doc/tutorial/
If it doesn't make sense, then consider buying a book. But don't waste money if you can get started with a tutorial ;)

Also, note that there aren't very many books or compilers for C++11 yet (the new version of C++ that came out last year), so if you see something related to it you might get lucky ;)
Last edited on
Indeed there are many bad books.

General agreement is that the following four are good:

"C++ Primer" (Lippman, Lajoie, Moo) -- big, detailed, all-encompassing book

"Accelerated C++" (Koenig and Moo) -- goes a bit faster if you can handle the pace. You may need to know some programming for this.

"Thinking in C++" (Eckel) -- available online for free:
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html

"Programming: Principles and Practice Using C++" (Stroustrup) -- best book if you are new to programming in general, not just to C++

references:
http://jcatki.no-ip.org/fncpp/Resources
http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
I recommend primer as stated above, because I'm currently working though it and find it great. I do want to get Strousup's book as well. I only hear good things about it
I started learning from scratch by trying to understance some of the most fundamental concepts using the tutorials on this website, then it's a good idea to watch some video tutorials online just so you can see the code being typed and explained line-by-line, then you should consider buying a book.

I actually bought two when starting, so that I could compare information between them. One book might have been terrible at explaining classes in a way I could understand, whereas the examples provided in the other book helped me a lot and vice versa. The books are big and expensive though, so it depends on how much you have to spend.

"Sams Teach Yourself C++" is the first one I bought, which is good enough at explaining things to a complete newcomer (if you ignore the "learn in one hour a day!" concept and just read it through). The other book I bought was "C++ Without Fear" which is a OK but includes a lot of useless c++0x examples which you most likely will not be able to use. Both books cover loops, ifstatements, pointers, arrays, strings, functions and classes (different aspects in both books), followed by a few advanced techniques.

Like I said though, start out with the free stuff.
Last edited on
Ok, so I will go through some tutorials on the internet, such as the documentation on this site. Then, I will probably buy a good book like C++ primer, or C++ primer plus. Thanks all for the replies.
a good book like C++ primer, or C++ primer plus

Don't confuse the two. Primer is good, Primer plus is bad.
Yes, you are right. I looked at some reviews about c++ primer plus, and they say it teaches you bad habits. Thank Cubbi.
I agree with all here to start with this tutorial here , it's good and briefed .
But I ask what after it ??
PS: I thought it will be useless to make a new individual topic :) So I posted here it's related .
Topic archived. No new replies allowed.