Showing
1 changed file
with
19 additions
and
0 deletions
echoexit.cpp
0 → 100644
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 |
-
Please register or login to post a comment