이유진

add exit

1 +#include <iostream>
2 +#include <string>
3 +using namespace std;
4 +
5 +int main() {
6 + cout << "[ ¿¡ÄÚ ÇÁ·Î±×·¥ ]" << endl;
7 +
8 + while (1) {
9 + cout << "input : ";
10 + string i;
11 + cin >> i;
12 + cout << "echo : " << i << endl;
13 + if (i == "exit") {
14 + exit(1);
15 + }
16 + }
17 +
18 + return 0;
19 +}
...\ No newline at end of file ...\ No newline at end of file