C++ search database for response

Hewlett-packard / Pavilion touchsmart amd a...
March 4, 2014 at 15:44:15
Specs: Windows 7, 8GB
I know my question title is not very self explanatory , so please allow me to explain: I made an algorithm for an AI and at first i tried writing it in vbs, and then i tried batch and now i've finally decided to move to c++ instead. So here is how i did it in batch:

@echo off
set /p input=What do you want to search the database for?
set input=%input:What is an=an%
findstr /ilc:"%input%" "database.txt" || echo No Information Found
goto loop
How do i do this in c++? my goal is that I type something in to my program and it will search the file for it and if it finds a line that contains it it displays the whole line, instead of that though, what it will do is if it finds the users input in the database it will then respond with the, or one of the corresponding responses to that which is found in the database, I am using Orwell Dev C++ 5.6.1

See More: C++ search database for response

Report •

March 5, 2014 at 08:14:34
Natural language processing is a fairly in depth field. I don't have much suggested reading, but I suggest you start with http://en.wikipedia.org/wiki/Natura...

How To Ask Questions The Smart Way

Report •

March 12, 2014 at 09:47:50
Actually i found my own answer and algorithm with help from other people on other sites... but thanks

Report •

Related Solutions

Ask Question