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