Source Code for a Game FRIEND?

i had this really cool game in which you type in questions and get back witty replies. is it possible to create this program in c++? if anyone already has this program, then please let me know.

to create this program, maybe we can store many replies in a file, and search for a keyword obtained from the question. but this sounds very complicated, also there seems to be a very less chance of an accurate reply. Any ideas?
Get the question ( http://www.cplusplus.com/reference/string/getline/ )
Look for keywords ( http://www.cplusplus.com/reference/string/string/find/ )
Read the answer from a file ( http://www.cplusplus.com/doc/tutorial/files/ )
Give the answer ( http://www.cplusplus.com/reference/iostream/ostream/operator%3C%3C/ )
- you may want to read the file only once and store it in a container ( http://www.cplusplus.com/reference/stl/ ) -
Topic archived. No new replies allowed.