blue

Editing exit function

Showing 1 changed file with 7 additions and 2 deletions
...@@ -2,8 +2,13 @@ ...@@ -2,8 +2,13 @@
2 using namespace std; 2 using namespace std;
3 3
4 int main(){ 4 int main(){
5 + string word;
5 6
6 - cout << "Hello, world!"; 7 + cout << "Hello, world!"<<endl;
8 + cout << "type the exit"<< endl;
9 + cin >> word;
7 10
8 - return 0; 11 + if (word == "exit")
12 + cout << "Á¾·áµÇ¾ú½À´Ï´Ù." << endl;
13 + return 0;
9 } 14 }
...\ No newline at end of file ...\ No newline at end of file
......