Description: //Dictionary
#include <iostream>
#include <fstream>
#include <string>
#include <time.h>
#define maxsize 1000 0
#define exp_n 10000
using namespace std
string word[maxsize] //words of dictionary
int word_n //number of words
int fn //number of words found
int fl[26]
int compare_n
void Input_data()
{
int i
word_n=0
ifstream infile("dict.txt")
while(!infile.eof()){
infile>>word[word_n]
//ucase letter convert to lcase letter
for(i=0 i<word[word_n].length() i++)
if(char(word[word_n][i]) < a ) word[word_n][i]+= a - A
word_n++
}
infile.close()
}
int char_int_converter(char c)
{
if(c<= z && c>= a ) return c- a
if(c<= Z && c>= A ) return c- A
cout<<"Error!"<<endl
exit(0)
}
int Inword(string ss,int srt,int nd,int &pos)//confirm the word in dictionary or not
{ //find area:srt is start position nd is end position
int k
int startw=srt,endw=nd
To Search:
File list (Check if you may need any files):
Dictionary_Search\Debug\Dictionary_Search.exe
.................\.....\Dictionary_Search.ilk
.................\.....\Dictionary_Search.obj
.................\.....\Dictionary_Search.pch
.................\.....\Dictionary_Search.pdb
.................\.....\vc60.idb
.................\.....\vc60.pdb
.................\dict.txt
.................\Dictionary_Search.cpp
.................\Dictionary_Search.dsp
.................\Dictionary_Search.dsw
.................\Dictionary_Search.ncb
.................\Dictionary_Search.opt
.................\Dictionary_Search.plg
.................\Debug
Dictionary_Search