Rewrite the Menu Chooser program from this chapter using an enumeration to represent difficulty levels. The variable ‘choice’ will still be of type ‘int’.
What’s wrong with the following loop?
1
2
3
4
5
6
int x = 0;
while (x)
{
++x;
cout << x << endl;
}