Best way of learning C++?

At this moment, I'm reading a book "How to program C++". I was thinking about taking notes and using them on the exercises parts on the book. Anyways, what do you think a good educated thing for learning C++? Taking notes like I'm about to do?

Edit: this might as well help those people who are still struggling! :D
Last edited on
Uhh, a few things off the top of my head:

1. Read other people's code
2. Find out what other people's programs do in your head just by reading through their code
3. Debug other people's code
4. If you EVER don't know something, FIND the answer, no matter what.
5. If you can't do something or something isn't working, figure it out, even if you have to take a break and come back to that particular problem 2 days later.
6. Books are awesome resources
7. Look into project euler, not only is it a lot of fun, it's also very satisfying when you complete a problem, as you can look at other people's code and learn different ways of doing the same thing
8. Review previous notes several times - you won't memorize something if you've only typed it out once
9. Read programming forums
10. When you've successfully completed an exercise, omit something in the program and find out what error it gives you so when you see that error next time, it'll be an easy fix.
11. (edit) Program a lot, then program more, then program some more, then read about programming, then program even more (and then go to bed, because it's 3am).

Taking notes is really good, and commenting ALL of your code is good as well, because not only do you type it out once (reinforces it into your memory), but you also explain it to yourself (strengthens that reinforcement).
Last edited on
Thank you, this might help me and the people who are struggling :)
Hi,

I write my methodolgy in the file as comments, then write the code between the comments. This helps you organise your thinking logically and the comments serve as documentation. It is a very basic way of doing design.

TheIdeasMan
I have found that I learn much better if I write some code myself. If you have read something in a book make sure to test it out by writing some code to test it out. It could be exercises given by the book or your own creation.
Last edited on
Topic archived. No new replies allowed.