check if user input matches a word

This is a discussion on check if user input matches a word within the C++ Programming forums, part of the General Programming Boards category; I need to know how to check if something a user inputs matches a word. For example, if the program ...

check if user input matches a word

I need to know how to check if something a user inputs matches a word. For example, if the program asks "Do you want to continue?" and the user enters either "yes" or "no" it'll check to see if "yes" was entered then do something and same with "no". I can do this with numbers like "Enter 1 for Yes 0 for No" and with single letters like y and n but I can't figure out how to do this with entire words.