Introduces the definition of an enumeration type.
enum Direction {
UP,
LEFT,
DOWN,
RIGHT
};
Direction d = UP;
C++11
In C++11, enum may optionally be followed by class or struct to define a scoped enum. Furthermore, both scoped and unscoped enums can have their unde...