Showing
4 changed files
with
12 additions
and
1 deletions
No preview for this file type
No preview for this file type
This file is too large to display.
| 1 | #include <iostream> | 1 | #include <iostream> |
| 2 | +#include <string> | ||
| 3 | + | ||
| 2 | using namespace std; | 4 | using namespace std; |
| 3 | 5 | ||
| 6 | +void exit() { | ||
| 7 | + string ex; | ||
| 8 | + cin >> ex; | ||
| 9 | + if (ex == "exit") cout << ex; | ||
| 10 | + return; | ||
| 11 | +} | ||
| 12 | + | ||
| 4 | int main() { | 13 | int main() { |
| 5 | cout << "helloworld"; | 14 | cout << "helloworld"; |
| 6 | -} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 15 | + exit(); | ||
| 16 | + return 0; | ||
| 17 | +} | ... | ... |
-
Please register or login to post a comment