Need a little help to figure out an ENUM problem. This is not the code or the specific problem. I'm trying to create an example that will help me understand ENUM. The tutorials haven't helped.
I have declared:
Enum Directions { North, South, East, West };
Void Cardinal ( Directions);
The program intends to cout the direction when desired by calling a function.
Cardinal [ North ] ; or [South]; or etc.
That called a function:
Void Cardinal ( Directions )
To cout << “The direction is “ <<
Can you help me with the code for the Void Cardinal Function?