박선진

exit

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";
15 + exit();
16 + return 0;
6 } 17 }
......