Electrical and Computer Engineering
5 of 12
UAH
CPE 112
User-Defined Simple Types
•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);