Showing
1 changed file
with
2 additions
and
5 deletions
| ... | @@ -5,13 +5,10 @@ using namespace std; | ... | @@ -5,13 +5,10 @@ using namespace std; |
| 5 | int main() { | 5 | int main() { |
| 6 | string s; | 6 | string s; |
| 7 | while (true) { | 7 | while (true) { |
| 8 | - cout << "if you enter 'exit', the program will exit: "; | ||
| 9 | cin >> s; | 8 | cin >> s; |
| 10 | - if (s == "exit") { | ||
| 11 | - break; | ||
| 12 | - exit(100); | ||
| 13 | - } | ||
| 14 | cout << s << endl; | 9 | cout << s << endl; |
| 10 | + } | ||
| 11 | + | ||
| 15 | } | 12 | } |
| 16 | 13 | ||
| 17 | } | 14 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment