back
Using Enum
Go through the PowerPoint presentation in the public directory in the folder for period two called "C++ Stuff." The name of the PowerPoint presentation is "enum"

Copy and paste this example of using in your compiler. Execute it and leave it on the screen.

[enum example #1]

Now, copy and paste this example:

[enum example #2]

Assignment
Answer/do the following:
Name:
e-mail:
Class Period:
Date:

Write a statement that declares an enum type called cards that allows the values of hearts, spades, clubs, and diamonds.


Write a statement that declares an enum type called moods that allows values blue, cool, ok, and happy. Have the list begin with the value one.


Make a list of three different enumerated data types that might be useful in programming.