Palisade

In the C++ Lion's Den: Learning C++ step-by-step

Learning C++, Part I Get it working

A well-kept secret concerning the taming of the C++ lion is that you must learn the fundamentals before you start using more advanced syntax. Here is my own personal list that I have used with (very many) students since 1991. It corresponds to green belt knowledge:

1.Basic class structure; private and public members; header and code files

2.The vital keyword ‘const’ and the 4 places where it is used

3.Function and operator overloading; creating your own operators

4.Memory management; STACK and HEAP

5.Basic templates; STL, list container and simple iterators

I have found that once these issues are mastered (ESPECIALLY point 4) then you will have few major problems later.

C++ is a large and flexible language. By neglecting the fundamentals we run the risk of floundering when embarking on real projects. As in judo, learn how to break fall before attempting a hip throw!