Recommended books/tutorials for learning C++

For everyone, just starting with C++ or programming at all. Ask newbie questions in this forum!

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

Recommended books/tutorials for learning C++

Postby GeekDog » Thu Jun 02, 2005 10:13 am

OK all,

we get a lot of posts here asking (repeatedly) for book recommendations. So, this is intended to be a thread for people to post their recommendations for books/tutorials etc. It may be of use as a reference, and save us from posting the same things over and over again.

My recommendation is Bruce Eckel's Thinking in C++. It, along with helpful members of this forum, taught me almost everything I know about C++. Not that I have a great deal of knowledge, but I get by :wink:

This particular book has the added advantage that you can download the full text of both books (it's in two volumes) quite legally from the author's website.

For general reference, see DannyBoy's link to CppReference.com below. If what you're looking for isn't there, I sometimes find this site useful for the STL: SGI: STL programmer's guide. Note that this is not exactly the same as the standard library that ships with most compilers, but everything I've looked up on it so far has worked!

People, please post your suggestions. Admins/mods, if you think this thread looks useful and you have the power, please sticky it! :)

(edited for prettifying + added SGI link)
Last edited by GeekDog on Thu Jun 02, 2005 5:48 pm, edited 2 times in total.
User avatar
GeekDog
 
Posts: 1160
Joined: Sun Sep 28, 2003 1:42 pm
Location: UK

Postby DannyBoy » Thu Jun 02, 2005 10:31 am

My recommendations for reference books: As for websites, I have found C++ Reference helpful for general reference and Numerical Recipes in C very useful for the mathematical side of programming.
User avatar
DannyBoy
 
Posts: 1160
Joined: Fri Feb 13, 2004 12:56 pm
Location: In the Billiard Room with the Lead Pipe

Postby jlou » Thu Jun 02, 2005 10:59 am

(highly recommended in bold, essential underlined)

Websites:
C++ FAQ Lite
comp.lang.c++.moderated

Books:
C++ In-Depth Box Set by several authors... most books in the set are included below.
Accelerated C++ by Koenig & Moo
The C++ Programming Language by Stroustrup
C++ Coding Standards by Sutter & Alexandrescu
Design Patterns by Gamma, Helm, Johnson, & Vlissides
Effective C++ by Meyers
More Effective C++ by Meyers
Exceptional C++ by Sutter
More Exceptional C++ by Sutter
Effective STL by Meyers
Modern C++ Design by Alexandrescu
The C++ Standard Library by Josuttis
Algorithms in C++, Parts 1-4 by Sedgewick
Algorithms in C++, Part 5 by Sedgewick
Last edited by jlou on Mon Mar 20, 2006 4:20 pm, edited 1 time in total.
User avatar
jlou
 
Posts: 760
Joined: Tue Sep 21, 2004 6:42 pm


Postby t i l e x » Fri Jun 03, 2005 6:00 am

The OpenGL Redbook has helped me a lot to understand OpenGL.
User avatar
t i l e x
 
Posts: 3604
Joined: Wed Dec 03, 2003 3:59 pm
Location: Québec (Canada)

Postby Guest » Wed Jun 08, 2005 12:42 am

Back to the topic:
For people with no programming experience, a very good choice is C++ How to Program by the Deitels.

For people who are more advanced The C++ Programming Language by Stroustrup is very good too.

If you don't know any C++, don't get Effective C++ by Meyers because the book wasn't written for that purpose. A very good book but after you learn how to program in C++. :)
Guest
 

Postby t i l e x » Wed Jun 08, 2005 3:23 pm

Stroustrup's book is very good. It's not begginer-friendly though. When you just start out and you see his code, full of templates and STL containers, you freak out :lol:
User avatar
t i l e x
 
Posts: 3604
Joined: Wed Dec 03, 2003 3:59 pm
Location: Québec (Canada)

Postby Wizard » Tue Jun 21, 2005 2:57 pm

Dev-CPP - a free and very useful C++ compiler
(a little off the topic of tutorials and books, but still good information)
User avatar
Wizard
Site Admin
 
Posts: 3226
Joined: Mon Sep 22, 2003 4:52 pm
Location: ON, CA

Postby GeekDog » Thu Jun 23, 2005 4:53 am

I've been using Code::Blocks of late. In some respects it's better than Dev-C++ (primarily in that it doesn't give me strange and nonsensical linker errors on my current project!)
User avatar
GeekDog
 
Posts: 1160
Joined: Sun Sep 28, 2003 1:42 pm
Location: UK

Postby Wizard » Sun Jul 03, 2005 2:23 pm

Another good read, "How Not to Program in C++"
Collection of broken programs and humourous anecdotes from someone who's been in the industry long enough to see more than his fair share of poor programming practices.
User avatar
Wizard
Site Admin
 
Posts: 3226
Joined: Mon Sep 22, 2003 4:52 pm
Location: ON, CA

Postby deepbluegeek » Wed Mar 01, 2006 6:05 pm

I recommend this for beginners...
"Object-Oriented Programming in C++" by Robert Lafore

along with the...
"C++ How to Program" by the Deitels. (although this one is fairly expensive)

Both of these books are really helping me through the basics and especially pointers, which I have a hard time wrapping my head around.
deepbluegeek
 
Posts: 55
Joined: Thu Dec 25, 2003 12:34 am

Postby dynamicmasterc » Fri Mar 17, 2006 9:30 pm

DannyBoy has hit the nail right on the head.

C++: The Complete Reference by Herbert Schildt

The C++ Standard Library: A Tutorial and Reference by Nicolai M. Josuttis

I own both of these and find them to be quite useful. These books were $50 US when I got them. For anyone not familiar with Schildt, he is a well respected programmer and was on the committee that standardized C++. With a name like Schildt, it's gotta be good...
User avatar
dynamicmasterc
 
Posts: 3
Joined: Fri Mar 17, 2006 9:16 pm
Location: MI, USA

Postby jlou » Mon Mar 20, 2006 4:14 pm

dynamicmasterc wrote:For anyone not familiar with Schildt, he is a well respected programmer and was on the committee that standardized C++.
That's debatable. He is infamous for mistakes in his books and for teaching poor programming practice. See the ACCU reviews of his books for an example of what I'm talking about.
User avatar
jlou
 
Posts: 760
Joined: Tue Sep 21, 2004 6:42 pm

Postby appu » Sat Apr 08, 2006 8:44 am

I don't know if someone has mentioned it or not.

C++ Templates By Vandevoorde & Josuttis
I never think of the future. It comes soon enough.
User avatar
appu
 
Posts: 56
Joined: Wed Jan 04, 2006 5:53 am

Re: Recommended books/tutorials for learning C++

Postby Lawand » Fri Mar 13, 2009 2:37 pm

http://www.cplusplus.com/ has -among other stuff-,
-a great tutorial: http://www.cplusplus.com/doc/tutorial/
-a solid C++ Library Reference: http://www.cplusplus.com/reference/
What is my signature?
User avatar
Lawand
 
Posts: 33
Joined: Fri Mar 13, 2009 1:44 pm

Next

Return to For Beginners

Who is online

Users browsing this forum: Google [Bot] and 4 guests