Definitions
Aliasing is the practice of referring to one object by more than one “name”; in C++ these names are actually pointers or references.
The aliasing problem is a name for the difficulties caused by altering a shared object.
An enum is a way to define a number of unchangeable values, which are quite similar to consts. The value of each successive name in an enum is automatically incremented from the value of the previous name (if you don't specify another value explicitly). The term enum is short for “enumeration”, which is a list of items.
The switch statement is functionally equivalent to a number of if/else statements in a row, but is easier to read and modify. The keyword switch is followed by a selection expression (in parentheses), ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access