송재혁

echo program(exit included)

Showing 1 changed file with 4 additions and 0 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);
if (input == "exit")
return 0;
else
cout << "Input : " << input << endl;
return 0;
}
\ No newline at end of file
......