dHash(word));Р cout<<endl;Р continue;Р system("cls");Р break;Р case '5':Р option=0;Р break;Р default:Р system("cls");Р }Р?}Р}Рint Open(char *filename)Р{Р?char word[MaxLength],ch;Р?int i;Р?FILE *read; //指向FILE类的指针*readР if((read=fopen(filename,"r"))==NULL) //只读方式读取文件,如果为空Р?{Р cout<<endl<<"未找到要打开的文件,请重新输入!";Р return -1; //跳出Open函数Р?}Р?while(!feof(read)) //判断文件是否结束,到末尾函数值为“真”即非0Р?{Р i=0;Р ch=fgetc(read); //读取一个字符Р while(LetterNot(ch)==0&&feof(read)==0)Р ch=fgetc(read); //如果不是字母就接着读取,关键字都是由字母组成的Р while(LetterNot(ch)==1&&feof(read)==0)Р {Р if(i==MaxLength)Р {Р while(LetterNot(ch)==1&&feof(read)==0)Р {Р ch=fgetc(read); //超过MAXLEN的长度则一定不为关键字,把余下连一起的字母都读取Р }Р i=0;Р break;Р }Р elseР {Р word[i++]=ch; //把读取到的字母存入word数组中Р ch=fgetc(read);Р }Р }Р word[i]='\0';Р if(KeywordsNot(word))Р {Р CreatHash(word);