Little trouble here using enum in my program I took a section of my program to show maybe one of you have a suggestion in why I am getting an infinite loop here. I have the following statement: enum food {Pizza=10, Lasagna=20, Chips=2, Burrito=5};
case 'c' :
case 'C' :
cout << "What is my favorite food?";
cout << "\nMy top 5 are Pizza,Lasgna,Chips,and Burrito.";
cout << "\nPlease chose from one of my top 5";
cout << endl;
do{
cout << "Pick a Food: ";
cin >> user_selection;
if (user_selection < 20)
cout << "Incorrect please try again";
else
cout << "Good job! You guessed my favorite food!";
}while (user_selection != 20);
break;