I have code that will ask for the day of the week but is there a way to make it ask the question again if the user doesn't enter one of the 7 days provided?
string TheDay()
{
string whichday;
cout<<"Please provide a day of the week - ex. Mo Tu We Th Fr Sa Su"<<endl;
cin>> whichday;
system("cls");
transform(day.begin(), day.end(), day.begin(), tolower);
return whichday;