정태규

exit function has been added

Showing 1 changed file with 3 additions and 2 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) { 7 + getline(cin, input);
8 - 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
......