Loops, Pointers and Functions
We hope you passed the introduction test with flying colors and now can delve deeper in the waters of C++. Even though the previous lesson was named Introduction, everything you will learn here can also be treated as an introduction. The reason we separated these two lessons is solely that you do not get overwhelmed by the basics you need to grasp to get into the more advanced topics that this language has to offer.
So, what will you learn in this chapter? Firstly, you’ll start grasping that multiple instructions which have similar code can be joined together and executed in less code. Secondly, you’ll start recycling your code. What this means is that if you have two or more sets of instructions, which more or less do the same thing, you can group them all together in one instruction, per say, and execute the grouped instruction at the places you need. Lastly, we’ll return to our model of the memory and we’ll look at how we can store our data in a way that is a bit different from what we’re used to.
Table of contents
- Classes and Objects
- Operator Overloading
- Class Inheritance
- Exceptions
- Namespaces
- Templates
- Standard Library
- Additional Problems