You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2024. It is now read-only.
cout << "\n IT WILL TAKE THE MONKEY AROUND " + formNum(attemptsApprox) + " ATTEMPTS TO TYPE \"" + input + "\"!\n SPECIFY THE ATTEMPT DISPLAY INTERVAL (a lower value displays more attempts but it is slower to calculate):\n -> ";
108
-
int dispInterval; cin >> dispInterval; cc();
107
+
cout << "\n IT WILL TAKE THE MONKEY AROUND " + formNum(attemptsApprox) + " ATTEMPTS TO TYPE \"" + input + "\"! (input 'r' to restart)\n SPECIFY THE ATTEMPT DISPLAY INTERVAL (a lower value displays more attempts but it is slower to calculate):\n -> ";
108
+
string dispInterval_str;
109
+
cin >> dispInterval_str; cc();
110
+
if (dispInterval_str == "r") program();
111
+
int dispInterval = stoi(dispInterval_str);
109
112
cout << endl;
110
113
111
-
cout << " THE MONKEY IS READY! ENTER ANY KEY TO START... (enter 'r' to restart)\n -> ";
112
-
char r; cin >> r; cc();
113
-
if (r == 'r') program();
114
+
cout << " THE MONKEY IS READY! PRESS ANY KEY TO START...\n -> ";
0 commit comments