Showing
1 changed file
with
12 additions
and
0 deletions
1 | #include <iostream> | 1 | #include <iostream> |
2 | #include <string> | 2 | #include <string> |
3 | using namespace std; | 3 | using namespace std; |
4 | +int exit_func(string a) | ||
5 | +{ | ||
6 | + string exit = "exit"; | ||
7 | + if(a.compare(b) == 0) | ||
8 | + return 0; | ||
9 | + else | ||
10 | + return 1; | ||
11 | +} | ||
4 | 12 | ||
5 | int main() | 13 | int main() |
6 | { | 14 | { |
7 | string std; | 15 | string std; |
8 | cin >> std; | 16 | cin >> std; |
9 | cout << std; | 17 | cout << std; |
18 | + if(exit_func(std)) | ||
19 | + ; | ||
20 | + else | ||
21 | + return 0; | ||
10 | return 0; | 22 | return 0; |
11 | } | 23 | } |
12 | 24 | ... | ... |
-
Please register or login to post a comment