안지현

exit edited

Showing 1 changed file with 14 additions and 0 deletions
1 +#include <iostream>
2 +using namespace std;
3 +
4 +int main() {
5 +
6 + string c;
7 + string e = "exit";
8 + cout << "Enter message" << endl;
9 + cin >> c;
10 + if (c == e) {
11 + exit(0);
12 + }
13 + return 0;
14 +}
...\ No newline at end of file ...\ No newline at end of file