Hey all, heres my deal. I need to take in user input, and compare it to pre-defined information. The user says something and the computer reacts after checking for appropriate match. Its a chatting program.I want to use a setup like this:
Code:cout<<"Input something: ";
cin<<input
if (input != " ")
{
struct Check1
{
<predefined keyword>
or
<predefined keyword>
or
<predefined response>
}
if (Check1 == true)
{
cout<<predefined response<<"\n";
}
else:
}
}
goto Check2
Now i realize this isn't real code, but this is the idea i want, any ideas how i could do this?