송민석

Added exit.cpp

Showing 1 changed file with 15 additions and 0 deletions
1 +#include <iostream>
2 +#include <string>
3 +using namespace std;
4 +
5 +int main(){
6 + string str;
7 + while(1){
8 + cout << "If you want exit, Input \"exit\" : ";
9 + cin >> str;
10 + if(str == "exit"){
11 + exit(100);
12 + }
13 + }
14 + return 0;
15 +}
...\ No newline at end of file ...\ No newline at end of file