송재혁

echo program(exit included)

Showing 1 changed file with 5 additions and 1 deletions
......@@ -5,7 +5,11 @@ using namespace std;
int main()
{
string input;
cout << "If you enter 'exit', the program will exit." << endl;
getline(cin, input);
cout << "Input : " << input << endl;
if (input == "exit")
return 0;
else
cout << "Input : " << input << endl;
return 0;
}
\ No newline at end of file
......