Showing
1 changed file
with
11 additions
and
2 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 | - getline(cin, echo); | 7 | + while(1) |
8 | - cout << echo; | 8 | + { |
9 | + getline(cin, 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