#include <iostream>
#include <string>
usingnamespace std;
int main()
{
string ans, name;
cout << "Hello what is your name" << endl;
cin >> name;
cout << "Nice to meet your " << name << endl;
cout << "How is your day " << name << endl;
cin >> ans;
// if (ans.eguals("good"))
if (ans == "good")
{
cout << "Thats good, enjoy the rest of your day" << endl;
}
// if (ans.equals("fine"))
if (ans == "fine")
{
cout << "Just fine not good" << endl;
}
// if (ans.equals("bad"))
if (ans == "bad")
{
cout << "Thats too bad, i hope you have a better day tomarrow" << endl;
}
//if (ans.equals("great"))
if (ans == "great")
{
cout << "thats awesome to hear" << endl;
}
//if (ans.equals("terible"))
if (ans == "terible")
{
cout << "thats terible to here, im sorry" << endl;
}
else
{
cout << "sorry thats none of the choices try good, fine, bad, great, or terible, thank you" << endl;
}
return 0;
}
int main(int argc, _TCHAR* argv[])
{
string ans, name;
cout << "Hello what is your name" << endl;
cin >> name;
cout << "Nice to meet your " << name << endl;
cout << "How is your day " << name << endl;
cin >> ans;
if (ans == "good")
{
cout << "Thats good, enjoy the rest of your day" << endl;
}
elseif (ans == "fine")
{
cout << "Just fine not good" << endl;
}
elseif (ans == "bad")
{
cout << "Thats too bad, i hope you have a better day tomarrow" << endl;
}
elseif (ans == "great")
{
cout << "thats awesome to hear" << endl;
}
elseif (ans == "terible")
{
cout << "thats terible to here, im sorry" << endl;
}
else
{
cout << "sorry thats none of the choices try good, fine, bad, great, or terible, thank you" << endl;
}
getch();
return 0;
}