July 13th, 2012, 05:01 PM
Finding keywords in Cin and Cout
Hello, I am writing an AI program similar to a chatterbot. I want it to be able to detect user inputted words. The user will input messages through 'cin' statements where they will then be interpreted. For example, if I inputted the message "I like waffles", I would want the program to search and detect the strings "like" and "waffles" and make a meaningful response. I originally intended to use the find() function to detect strings inside user inputted statements but I am not sure how to do this. Can anyone help me with this?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!