BEFORE YOU TRY THIS CODE
========================
To make this program more intelligent, add more entries in the
accompanying Eliza.Dat File.
Keep Eliza.Dat file in the same directory as this file.
NEVER FORGET TO INCREASE MAX_KEY VALUE IN ACCORDANCE WITH THE NUMBER
OF KEYWORDS YOU KEEP IN ELIZA.DAT FILE. If there are 200 keywords in
that file, make the value of MAX_KEY as 200.
I know that this program can be make much more powerful and efficient
(by Dynamic Memory Allocation,etc). But this simple code is just for
the demonstration of concepts. Hope you gained something out of it.
You can also increase the string manipulation power of the program, like considering multiple lines from the user, etc. I had written this code in 1 1/2 hr. just to make it more easier for the readers of my article about what is happening.
HOW SMART YOU MAKE YOUR ELIZA DEPENDS ON HOW FAR YOU EXTEND THIS PROGRAM.
THERE IS PRACTICALLY NO LIMIT !
THIS CODE IS THE MINIMAL WORKING SKELETON !!
====================================================================================
Amit Mathur
([email protected])
Indore, MP, INDIA
http://www.vyomworld.com | http://amitmathur.8m.com
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet)
¤
|
Haftungshinweis
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.
|