文件名称:Dictionary_Search
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.08mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有名的词典查询
自动生成10000个单词然后找他的类似词。。。
-//Dictionary
#include <iostream>
#include <fstream>
#include <string>
#include <time.h>
#define maxsize 10000000
#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
自动生成10000个单词然后找他的类似词。。。
-//Dictionary
#include <iostream>
#include <fstream>
#include <string>
#include <time.h>
#define maxsize 10000000
#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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Dictionary_Search/Debug/Dictionary_Search.exe
Dictionary_Search/Debug/Dictionary_Search.ilk
Dictionary_Search/Debug/Dictionary_Search.obj
Dictionary_Search/Debug/Dictionary_Search.pch
Dictionary_Search/Debug/Dictionary_Search.pdb
Dictionary_Search/Debug/vc60.idb
Dictionary_Search/Debug/vc60.pdb
Dictionary_Search/dict.txt
Dictionary_Search/Dictionary_Search.cpp
Dictionary_Search/Dictionary_Search.dsp
Dictionary_Search/Dictionary_Search.dsw
Dictionary_Search/Dictionary_Search.ncb
Dictionary_Search/Dictionary_Search.opt
Dictionary_Search/Dictionary_Search.plg
Dictionary_Search/Debug
Dictionary_Search
Dictionary_Search/Debug/Dictionary_Search.ilk
Dictionary_Search/Debug/Dictionary_Search.obj
Dictionary_Search/Debug/Dictionary_Search.pch
Dictionary_Search/Debug/Dictionary_Search.pdb
Dictionary_Search/Debug/vc60.idb
Dictionary_Search/Debug/vc60.pdb
Dictionary_Search/dict.txt
Dictionary_Search/Dictionary_Search.cpp
Dictionary_Search/Dictionary_Search.dsp
Dictionary_Search/Dictionary_Search.dsw
Dictionary_Search/Dictionary_Search.ncb
Dictionary_Search/Dictionary_Search.opt
Dictionary_Search/Dictionary_Search.plg
Dictionary_Search/Debug
Dictionary_Search
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.