정태규

exit function has been added

Showing 1 changed file with 2 additions and 1 deletions
...@@ -4,9 +4,10 @@ using namespace std; ...@@ -4,9 +4,10 @@ using namespace std;
4 4
5 int main() { 5 int main() {
6 string input; 6 string input;
7 - while (true) {
8 getline(cin, input); 7 getline(cin, input);
8 + while (input != "exit") {
9 cout << input << endl; 9 cout << input << endl;
10 + getline(cin, input);
10 } 11 }
11 return 0; 12 return 0;
12 } 13 }
...\ No newline at end of file ...\ No newline at end of file
......