If I made a while loop like this:
...how could I set it up so that someone entering a letter below it (yes, I know about string and all that) broke the loop? Right now, I have this within the braces right below Sleep(100)...Code:while (seconds > 0) {
system("CLS");
seconds = (seconds - 0.1);
cout << setprecision(1) << fixed << seconds;
Sleep(100);
...but it doesn't work.Code:if (letter == "w") {
level++;
break;