The below code skips the first getline
prompt, but waits for the second prompt.
cout << "Enter a new animal in the form of a question," << endl << "e.g., 'Is it a whale?': " << endl;
getline(cin, first_question);
cout << "\nNow enter a question for which the answer is 'yes' for your new" << endl << "animal, and which does not contradict your previous answers: " << endl;
getline(cin, second_question);