Read the links I posted, specifically the first half of the second link.

Code:
 #include <iostream>	

using namespace std;
		
int main()
{
  string answer;
  
  cout<<"Do cows fly? yep or nope?";
  cin>> answer;
  cin.ignore();
  if ( answer == "nope" ) {
     cout<<"Correct!";
  }
  else if ( answer == "yep" ) {
     cout<<"You are terribly mistaken!";
  }
  else {
    cout<<"Invalid answer";
  }
  cin.get();
}
Make sure its == too. You can include <string> for more options.