If I made a while loop like this:
Code:
while (seconds > 0) {
          system("CLS");
          seconds = (seconds - 0.1);
          cout << setprecision(1) << fixed << seconds;
          Sleep(100);
...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:
      if (letter == "w") {
        level++;
        break;
...but it doesn't work.