전세계

add exit function

Showing 1 changed file with 5 additions and 0 deletions
1 #include<stdio.h> 1 #include<stdio.h>
2 +#include<string>
2 3
3 int main() 4 int main()
4 { 5 {
5 cout << "EchoProgram" << endl; 6 cout << "EchoProgram" << endl;
7 + string input;
8 + cin >> input;
9 + if (input == "Exit")
10 + exit(100);
6 return 0; 11 return 0;
7 } 12 }
...\ No newline at end of file ...\ No newline at end of file
......