Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -4,8 +4,11 @@ int main(){ | ... | @@ -4,8 +4,11 @@ int main(){ |
4 | string data; | 4 | string data; |
5 | cout << "input : "; | 5 | cout << "input : "; |
6 | cin >> data; | 6 | cin >> data; |
7 | + if(data == "exit"){ | ||
8 | + exit(100); | ||
9 | + } | ||
7 | cout << "print : "<<data; | 10 | cout << "print : "<<data; |
8 | - | 11 | + |
9 | 12 | ||
10 | return 0; | 13 | return 0; |
11 | } | 14 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment