Showing
1 changed file
with
5 additions
and
1 deletions
| 1 | #include<iostream> | 1 | #include<iostream> |
| 2 | +#include<string> | ||
| 2 | using namespace std; | 3 | using namespace std; |
| 3 | 4 | ||
| 4 | int main() | 5 | int main() |
| 5 | { | 6 | { |
| 6 | - | ||
| 7 | cout << "Hello Wolrd!"; | 7 | cout << "Hello Wolrd!"; |
| 8 | + string ment; | ||
| 9 | + cin >> ment; | ||
| 10 | + if (ment == "exit") | ||
| 11 | + return 0; | ||
| 8 | return 0; | 12 | return 0; |
| 9 | } | 13 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment