#include #include using namespace std; enum colortype {red, green, blue, secret}; int main() { colortype c; int color; cout << "Please select a color:" << endl; cout << "0..red" << endl; cout << "1..green" << endl; cout << "2..blue" << endl; cin >> color; c = static_cast(color); switch (c) { case red: cout << "You chose red"; break; case green: cout << "You chose green"; break; case blue: cout << "You chose blue"; break; case secret: cout << "Gratulations, you chose the secret color!"; break; default: cout << "You chose poorly"; break; } cout << endl; return 0; }