#include #include #include #include #include #include #include "avltree.h" //#include "avltree.cpp" #define MAXWORD 25 void main() { clrscr(); FILE *fp; char word[MAXWORD]; AvlTree ptree, flag; ptree = MakeEmpty(NULL); if((fp=fopen("d:\\cprogs\\armicor\\avltree\\dic2.txt","r"))==NULL) { cout<<"cannot open file\n"; exit(1); } while(!feof(fp)) { findword(fp,word,MAXWORD); // if(isalpha(word[0])) ptree=Insert( word, ptree ); } fclose(fp); cout <<"The file was inserted into the Data Structure ! \n" << "If you want to check some words in dictionary please \n" << "type it and the system will answer if it is there or not\n" << "If you want to exit the program please type - exit1 \n" << "Please type your words (phrases) \n" ; strcpy(word,"initialize"); while (strcmp(word,"exit1") !=0) { cin >> word; flag = Find(word, ptree ); if(flag == NULL ) cout <<"The word " <