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, ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    44

    Lightbulb 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! ^^

  2. #2
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    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.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    44
    Oh, I get it. I'll be studying harder then. ^^ Thanks for the response mate.

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    67
    Quote Originally Posted by ShadeS_07 View Post
    Oh, I get it. I'll be studying harder then. ^^ Thanks for the response mate.

    That's oogabooga for you haha... but he knows his stuff!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21