조수연

modified

Showing 1 changed file with 12 additions and 0 deletions
...@@ -3,5 +3,17 @@ ...@@ -3,5 +3,17 @@
3 using namespace std; 3 using namespace std;
4 4
5 int main() { 5 int main() {
6 + string s;
7 + cin >> s;
8 + if (s == "exit") {
9 + cout << "exit the program..." << endl;
10 + exit(100);
11 + }
12 + else {
13 + cout << "your input is [" << s << ']' << endl;
14 + }
15 +
16 +
17 +
6 18
7 } 19 }
...\ No newline at end of file ...\ No newline at end of file
......