Need Advice For A Small C++ Program
Hey, guys! I need y'alls help on this small, but kinda difficult program I been trying to make. I am trying to make a program where the user types in a question, such as, " Where do I make my account?".. and the program reads the user inputs and replies with a pre-written statement by keying on certain words such as " make" and/or "account" from the example sentence I just wrote above.. If any of y'all have used paypal before you might be aware of their "Virtual Chat Assistance" on their website. That is sort of what I am trying to make. Obviously, I need to use the function "string" to hold the user's input. But from there, I have no idea how to move on. What functions can I, or should I, use? I was thinking about maybe using the "if", "else if", and "else" statements. but after trying it in my program, it wouldn't even compile because... well I don't even know why, really.. haha. (No don't take me as a total newbie on using IF statements, because I have written many other programs using it, and it worked fine. It's just I have never written a program like this before. So anyway, how should I set up my "pre-defined words" and my "pre-written statements/replies"? And what can I do to make the program read the user's input, and pick out the keywords in it, and than reply with a pre-written statement that goes along with the certain keyword?
I'm trying my best to explain this as detailed as possible, but forgive me if you don't really understand what I'm asking haha.
If you do... than pls help me out! I will be greatly appreciative!