C++ SimSimi/Cleverbot

This is a discussion on C++ SimSimi/Cleverbot within the C++ Programming forums, part of the General Programming Boards category; Recently, the Facebook App "SimSimi" became popular in the Facebook community. At the very first time I encountered this app, ...

C++ SimSimi/Cleverbot

Recently, the Facebook App "SimSimi" became popular in the Facebook community. At the very first time I encountered this app, I remembered another "chatbot" I used to kill some time with called "Cleverbot". They're like similar chatbots to me... (Cleverbot seems to be much better than SimSimi) and recently, I've been doing research about these two "chatbots" (I'm not really sure if those two apps are "chatbots").

Anyway, these apps are like recording the way a user respond to its statements/messages and stores it in some sort of a database. I wish to know how can this be done with C++. I'm thinking of having a text file that'll serve as a "database" for this C++ program I wish to make. Can anyone please help me? I know basic file I/O so far, and by basic, I mean *basic*... as in, I don't know yet how to handle comma-delimited text file. I do it line by line like:

Code:

Name
Age
Address

...instead of:

Code:

Name, Age, Address

I just use fstreamObject.getline(stringVariable, sizeof(stringVariable)) to receive input from file and fstreamObject << stringData to output on a specified file. That's what I know so far when it comes to file handling. I use Code Blocks IDE, MinGW Compiler, if that matters. I did prior research before finally creating a thread here. Sadly, my research turned out to be not so good... It's either I get nothing, irrelevant, or perhaps very hard to understand tutorials out there.

I just want to learn something new. Any help would be greatly appreciated. I'm sure that it'll be fun.
Thanks in advance! ^^

A chatbot is presumably not simply storing exactly what was input, but doing some grammatical (and possibly semantic) analysis. It sounds like this is currently beyond your capability. Try going through the tutorials on this site, and/or get a book.