This C++ program shows how to use enumerated type . The enum is a compound data type and works in C++ exactly the way it works in ANSI-C with one small exception. The keyword enum is not required to use when defining a variable of the enum type, but it can be used if desired.

Output of the C++ Program:

The game was played and we won!

The game was played and we lost.

The game was played

Logitech G502 HERO High Performance Wired Gaming Mouse
Unleash your gaming potential with the Logitech G502 Hero Gaming Mouse – precision, customizability, and comfort for the ultimate competitive edge!
View on Amazon

The game was cancelled