Ways to learn c++

Soldato
Joined
30 Jun 2003
Posts
2,807
Location
Berkshire
I've been wanting to learn c++ for the past two years, i've bought books on it, tried ebooks but they get to a point where they hit a confusion point and goes of the tail the fact that the reader IS a beginner. Does anyone know of any ones or other learning media that can help me on my way to learning c++?
 
Well perhaps this may sound a little blunt, but the best way in my opinion is to write code, have it evaluated by a learned friend or on an internet forum, rinse, repeat. Practise is key, just like anything else.

It's C++ btw, not c++. Sorry to be pedantic. ;)
 
would it be worth looking at some source code, see how its developed? and see if i can start making minor changes, even if its a small change thats noticeable
 
Give yourself small projects to code in C++.

Example: Ask the user for a number, and print out all prime numbers that are smaller than that number.

Example: Write a primitive banking app, with objects that represent customers and accounts, and allow transactions to be made between the two.
 
I found it much easier to keep writing my own programs from scratch and then, as Wang Computer said, get someone in the know to look it over. It'll eventually stick.
 
would it be worth looking at some source code, see how its developed? and see if i can start making minor changes, even if its a small change thats noticeable

Do both:

Write basic programmes from scratch
Read source code and step through it with debugger.

Plus huge amount of reading of guides, help files and forums :p
 
Yep, once you understand a bit of OO theory, and some C++ language syntax (so that you can actually read and write code); you're best off thinking of a project and trying to build it, then by reading examples and tutorials you'll just slowly build up your knowledge.

Books are good for teaching you theory and syntax, cookbooks are good for telling you how to do a few common operations (like reading a file etc), but most of your knowledge is really going to come from making programs. But seeing, and figuring out what other peoples source does is useful, just so long as you don't directly copy-paste it, but use it as a guideline.
 
Back
Top Bottom