Yunhee Lim

Add 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 s;
7 + cout << "Enter: ";
8 + getline(cin, s);
9 + if (s == "exit") {
10 + cout << "ÇÁ·Î±×·¥À» Á¾·áÇÕ´Ï´Ù." << endl;
11 + exit(0);
12 + }
13 +
14 + return 0;
15 +}
...\ No newline at end of file ...\ No newline at end of file