Join 244,533 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,370 people online right now. Registration is fast and FREE... Join Now!
This is one of those FAQs on the forum so a search of the forum will return many discussions on the topic.
Many people seem to recommend "The C++ Programming Language (Special 3rd Edition) " by Bjarne Stroustrup. It is a really great book in my opinion.
Typically entry to mid level programming books come in three flavors:
"How-to" -- Lots of examples, light on theory. Although these are typically easy to follow, many of them contain technical mistakes (usually due to an attempt to keep the material simple -- I always get mad when I learn that they taught me bad practices, or misguided me).
"Textbook" -- Tend to have a mixture of theory and examples. Much of the material is actually covered in the "Assignments" so you should work the problems. Can be very boring.
"Reference" -- My favorite. These tend to be much more technical. They try to cover a lot of information and tend to have lots and lots of small examples.
Generally the three types can be distinguished by their thickness. The "how-to" books tend to be rather slim, and the Reference books tend to be really thick. The text books tend to fall in the middle.
The only book which I feel is missing from that list (Which is also very well respected, and geared towards complete beginners from a non-programming background) is "You Can Do It!" By Francis Glassborow.
By the way, there are also alot of C++ books which you certainly want to avoid; - Any book which offers to teach you in X Days or Hours - Any book which claims to be for Dummies/Idiots/etc. - Any book written by Herbert Schildt In most of these cases, the problem is that the books teach the language the wrong way, by starting out teaching the 'C' subset of the language before touching on 'real' C++. The upshot is generally a lot more work and frustration for the learner using these books, to "un learn" the poor style that the authors promote (or, in some cases, the books lack much editorial control, and contain complete misinformation)
if possible it helps to have 2 different books. this way if one of the books doesn't teach something so you can understand it maybe the other one dose. and you can compare them. I have c++ primer book and beginning c++ in visual studios 6.0. between the 2 I have learned allot tho I'm almost done with them. I'm just dying for a good book with Xcode if anybody has any good suggestions!!!
that is another thing there are lots of books that are learning programing for a specific IDE. these are great and can save frustration of dealing with the IDE. but it helps to have a general c++ book to if you chose one of these. so you can learn work every where code.
This post has been edited by Jingle: 21 Dec, 2007 - 12:26 PM
Table of Contents Introduction Chapter 1 - Types, Variables, and Standard I/O: Lost Fortune Chapter 2 - Truth, Branching, and The Game Loop: Guess My Number Chapter 3 - For Loops, Strings, and Arrays: Word Jumble Chapter 4 - The Standard Template Library: Hangman Chapter 5 - Functions: Mad-Lib Chapter 6 - References: Tic-Tac-Toe Chapter 7 - Pointers: Tic-Tac-Toe 2.0 Chapter 8 - Classes: Critter Caretaker Chapter 9 - Advanced Classes and Dynamic Memory: Game Lobby Chapter 10 - Inheritance and Polymorphism: Blackjack
Table of Contents Introduction Chapter 1 - Types, Variables, and Standard I/O: Lost Fortune Chapter 2 - Truth, Branching, and The Game Loop: Guess My Number Chapter 3 - For Loops, Strings, and Arrays: Word Jumble Chapter 4 - The Standard Template Library: Hangman Chapter 5 - Functions: Mad-Lib Chapter 6 - References: Tic-Tac-Toe Chapter 7 - Pointers: Tic-Tac-Toe 2.0 Chapter 8 - Classes: Critter Caretaker Chapter 9 - Advanced Classes and Dynamic Memory: Game Lobby Chapter 10 - Inheritance and Polymorphism: Blackjack
Best Book!! I'd recommend this to anyone, whether they're learning c++ for game creation or not.
This post has been edited by devilsson2010: 22 Jan, 2008 - 02:35 PM
McGraw Hill C Plus Plus from the Ground Up Third Edition
The only book I can offer so far.
I have question myself. I have read: Programming Windows, Fifth Edition by (Charles Petzold) And Beginning DirectX 9 by Wendy Jones
I think these two people are complete idiots, because I understood nothing. Don't read these books.
Can someone offer me good OpenGL book? Or just how to setup OpenGL for windows on Visual C++ 2008, coz I always get messages I missing headers glux.h and other stuff
I'm totally new to these forums and to coding in general really but the best way to know if a book is right for you is get a couple of books from a library for 2 weeks or so then see which one you best understand and stick with it.
for people that have never used C++ or any other language to an existent that lets them know how to use the programming languages
the best book I've found is C++ programming for the absolute beginner by dirk henkenmans and mark lee it's much easier to understand than C++ A beginner's guide that herbert schildt has done that expects you to know what he's talking about straight off. (which might be better for people that have used something like visual basic before)
C++ programming for the absolute beginner general talks about C++ as in what commands and libraries are how and why you need to compile a program and the general things before going into anything major first like what (main) is for and doses that the other book doses (which leaving you scratching your head for 20 or so pages trying to see why he's put it there). C++ programming for the absolute beginner also gives examples of coding at every place where need to be shown for you to understand what a function or something else doses if read correctly or if half read correctly you'll get what it is for 5 pages on in the book. it may not be the best book out there but I've only read them 2. but it's a good book for people that have no experience in using the language or any other before.
"Textbook" -- Tend to have a mixture of theory and examples. Much of the material is actually covered in the "Assignments" so you should work the problems. Can be very boring.
"Reference" -- My favorite. These tend to be much more technical. They try to cover a lot of information and tend to have lots and lots of small examples.
I'd like to get one book from these categories. Recommendations?