Learning C++


i will be learning C++ , what source do you recommend ?


I have used this site’s library reference quite a bit. They have many resources that you might find useful, including a set of tutorials on different aspects of C++.

I’d advise that you practise and practise.

What I use… and I’ve only just begun!!! Can’t understand some of the stuff, did programming years ago but never touched on C++ http://www.cprogramming.com/tutorial.html

Ok, two terrible sites so far (cplusplus.com and cprogramming.com <-- this one is the worst of all).
cplusplus.com is only to be used for the basic stdlib references.

http://www.learncpp.com/ is much better than the previous ones if you want to learn C++.

http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html Thinking in C++ is not only a good book to learn C++, it’s also now free.

http://www2.roguewave.com/support/docs/sourcepro/edition9/html/stdlibref/index.html is a good stdlib reference, but you’ll need some knowledge of C++ before you can actually understand most of what’s written there.

http://www.parashift.com/c++-faq-lite/index.html covers a lot of advanced stuff, you must read it at least once.

As I tend to learn more by doing things, this site helped me a lot:

Plus, the tutorials are based around Code::Blocks, a opensource programming IDE.

I’d first read C++ for dummies, then wrote some silly code to practice.
Then I read some design tutorials around the web.
Then I started messing with real code (Insight ToolKit).
Then I read “The C++ Language” from Bjarne Stroustrup, practiced… then more design books etc…

After the rough beginnings I just use cplusplus.com as a stdlib reference.
Another VERY useful site is the C++ Faq Lite: http://www.parashift.com/c++-faq-lite/ //EDIT : ok, already cited :slight_smile:

First read and practice with a book for beginners. Books are good! Way more helpful than any site. Can even read it in bed!

Then once you start to get your head around OOP and C++ basics, dive into Stroustrup’s book and software design books.

I’d like to add, and people may argue about this, that as C++ is meant to be an improved C, as Stroustrup says, it can be very valuable to have some C understanding (memory management).


Okay, thanks KAHR, but I’m going to go out on a limb here and assume you know your way around c++. Will be looking into these sites at home, I don’t think the other sites we cited are that bad, but I’ve found the one I cited as being somewhat obscure on some issues. So thanks, really!:slight_smile:

In addition to those, you might try searching these forums too. I seem to remember that one of our members had a thread in which he gave quick little introductory C++ tutorials a while back

I think you’re right.

If you’re looking for something to do to practice your c++, you could always try writing some robot control code. Basically, you run the “stage” portion of the program (which you don’t write), and a little robot shows up in an 2D environment. You write “client programs” to control the robots based upon… whatever. Tons of virtual sensor inputs, or you could use keboard inputs… Anyways, if you want some practice, but want something at least a little constructive to do…



Although a book will still probably be better than that thread (its more cook-booky and cursory than if you really want to learn C++). I personally like the C++ Primer by Lippman et al., but I’m sure there’s others going up to Bjarne’s if you want.


I like this book (amazon.com was just the first google link).