Well, I started with switches, and completely understand them and how they work. But, I have 2 errors when trying to compile my improved number game. Here is the code:
The errors I get are:
cout<<"Enter number of guesses you wish to make:\n";
cout<<"Enter a guess:\n";
cout<<"That is correct! Press any key to exit.\n";
cout<<"That is incorrect. The number is lower. Only "<<loopCount<<" guesses remaining.\n";
cout<<"That is incorrect. The number is higher. Only "<<loopCount<<" guesses remaining.\n";
number.cpp(37)Error: parse error before 'else'
number.cpp(32)Error: Warning: unreachable code at beginning of switch statement
I have no idea how to fix either of those. I've been toying around with them for quite a while, but I'm clueless.