// This program will return true if the user types in y, Y, yes, Yes. Otherwise, if the user types in no, it will return false.
#include <iostream>
#include <string>
usingnamespace std;
// Function Prototype
void yes(string question);
int main ()
{
string answer;
// Gets the answer.
cin >> answer;
// Calls yes passing one argument.
yes(answer);
return 0;
}
bool yes(string question)
{
bool status;
if (question == "y" || question == "Y" || question == "yes" || question == "Yes")
status = true;
else
status = false;
}