Pointers and Dynamic Arrays
What Size Should We Make the Checks Array?
If it is too small, it might get filled up. If it is too large, many clients will only use a small fraction of the array space, and we will be wasting memory.
Overloaded Operators, Class
Templates, and Abstraction
A binary operator acts upon two operands
The operands can be constants, variables, or
If one or more of the o
Structs and Classes
A struct holds data, like an array
Each unit of data in a struct is called a data
member (or member)
they are called “elements” in arrays
In a struct, each data member can have a
different data type
in arrays, the
Chapter 3 More About Classes
The const Specifier
When added to the end of a function heading, it tells the compiler that no changes should be made to any private members during the execution of that function The use of const specifiers aids i
An Array Class
Before We Begin.
The Array class template uses some concepts you may not have seen before
inline return by reference bitwise operators & and |
Function calls generally take quite a few ma