Showing
1 changed file
with
10 additions
and
1 deletions
... | @@ -4,7 +4,16 @@ using namespace std; | ... | @@ -4,7 +4,16 @@ using namespace std; |
4 | int main() | 4 | int main() |
5 | { | 5 | { |
6 | string echo; | 6 | string echo; |
7 | + while(1) | ||
8 | + { | ||
7 | getline(cin, echo); | 9 | getline(cin, echo); |
8 | - cout << echo; | 10 | + cout << echo << endl; |
11 | + if(echo == "exit") | ||
12 | + { | ||
13 | + break; | ||
14 | + } | ||
15 | + } | ||
16 | + | ||
17 | + | ||
9 | 18 | ||
10 | } | 19 | } | ... | ... |
-
Please register or login to post a comment