김다솔

exit function added

......@@ -2,17 +2,29 @@
#include<iostream>
using namespace std;
void Exit(string words)
{
if (words == "exit")
{
exit();
}
return;
}
void EchoProgram()
{
string words;
cout << "Enter what you want to say : ";
cin >> words;
Exit(words);
cout << "\n\"" << words << "\"\n\n";
return;
}
int main()
{
while (1)
......