김성원

If you enter 'exit', the program will exit

Showing 1 changed file with 11 additions and 2 deletions
......@@ -4,7 +4,16 @@ using namespace std;
int main()
{
string echo;
getline(cin, echo);
cout << echo;
while(1)
{
getline(cin, echo);
cout << echo << endl;
if(echo == "exit")
{
break;
}
}
}
......