Lets say you enter JUST sauce. It will say found. If not, not found.
The issue is I want the user to be able to enter "I like sauce" and for Gilbert to say found. Currently, if you do anything more than sauce, he says "Not found!"
@Zaita
I am new to C++, how would I split the input from the user into a vector or array, iterate over this and check for the existence of every word is has in it?
Look at my code line 44. That shows you how to get each piece. Then you just need to check each piece for the value you want and keep track of if it has been found or not.
It's not so much of an if statement than a loop that maintains a variable to see if the object is found. bool isFound = false; Then do your loop and when you find it change isFound to true. After the loop if isFound is true print yes, if not print no etc.