|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
• |
Enumeration
Types – C++ allows the user
|
|
to
define a new simple type by listing
|
|
|
(enumerating)
the literal values that make
|
|
|
up
the domain of the type. These literal
|
|
|
values
are identifiers, not numbers,
|
|
|
separated
by commas.
|
|
|
• |
Example:
|
|
|
|
enum Days (SUN,
MON, TUE, WED,
|
|
|
THU, FRI,
SAT);
|
|
|
|