홍용민

adding exit function

Showing 1 changed file with 6 additions and 2 deletions
#include<iostream>
#include<string>
using namespace std;
int main() {
char c;
string c;
cout << "Enter a character -> ";
cout << "Enter string -> ";
cin >> c;
if (c == "exit") {
return 0;
}
cout << "you enter \"" << c << "\"" << endl;
return 0;
......