From C to C++
- slide 19 : 29
User defined types
Enumeration types
A thin layer on top of integers
Enumeration constants are not available in the executing program
Mapping from integers to symbolic names in
switch
statements
Stucts
An aggregate type
A value type in C
Typedef
A type alias facility
Good for complicated and convoluted types, such as function types
C++ expands heavily on the user defined types in C