object ::enum c++ code example
Example 1: enum c++
enum Colors
{
BLACK,
GREEN,
BLUE,
RED
};
Example 2: enum c++
enum season { spring, summer, autumn, winter };
enum Colors
{
BLACK,
GREEN,
BLUE,
RED
};
enum season { spring, summer, autumn, winter };