Summary
In this chapter, we've focused on various data types provided by C++, and how we can create our own more complex objects to represent our data and encapsulate functionality. Starting with the built-in data types provided by C++, we looked at them more closely, investigating their memory footprint and the different keyword modifiers we have in order to extend and change their behavior and properties.
We then moved on to looking at arrays and vectors. These derived types allow us to store collections of different elements under a single variable name, yet still address them individually using an index. We looked at the fixed array (a collection that requires knowing its size at compile time) and at the more flexible vector, which can grow/shrink dynamically to match our needs. It's this latter container that we utilized in the final activity to create our user records application.
Next, we took a short tour of classes and structs. These will be the focus of their...