freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

最新數(shù)據(jù)結構課程設計(文件)

2025-07-17 02:42 上一頁面

下一頁面
 

【正文】 t查找單詞\n)。//清空輸入緩沖區(qū) scanf(%d,amp。 printf(——統(tǒng)計結果已存放于%.——\n,pathOut)。 scanf(%c,amp。Y39。 printf(\n\n\t\t程序已退出........\n\n\n)。}WordCount類:pragma oncetypedef struct node{ char data。typedef struct{ int top。 Word *root。 void Init(Word *amp。 void JoinTree(Word *amp。sum)。 ~WordCount(void)。 char ch。 Word* p=root。filename[i]!=39。\039。 FILE *fin,*fout。t creat a new txt: %s\n,outFile)。 fclose(fin)。 fprintf(fout,%s%d,\nused time:,usedTime)。}void WordCount::Init(Word *amp。 nodesibling=nodenext=NULL。 newnodesibling=psibling。 pnext=NULL。p,char ch){//將讀入的字母字符加入樹 if((ch=39。ch=39。amp。)){//是否為字母 if(pnext==NULL){ Word *newnode。 return。pdatach) p=psibling。 } else if(psibling==NULL){ Word *newnode。 } } else{ pcount++。sum){//將單詞個數(shù)輸出,root為樹根 if(r==NULL) return。 char inSt[MaxLength]。 inSt[i++]=39。 fprintf(fout,%s%d\n,inSt,rcount)。 Fout(rsibling,d,fout,sum)。但_beginhreadex()方法和CreateTread()方法的參數(shù)不一樣且網(wǎng)上關于_beginhreadex()的示例也少一些,因此費了些時間了解_beginhreadex()方法的使用。然而,察覺到錯誤之后,我只是在原先的KMP算法上修修補補,導致我對預想的匹配算法漸漸模糊,因此即使花費很多時間也沒能完成匹配功能,最后我刪掉全部代碼并按照預想思路重新編寫很快就實現(xiàn)算法功能。在編程的過程中,我也體會到了學習編程的辛苦。通過本次課程設計我也了解到了在一個程序設計開發(fā)的過程中,一個優(yōu)秀的數(shù)據(jù)結構對程序的實現(xiàn)也是至關重要的。在完成匹配模塊功能時,我最先想到使用KMP算法,并且也確實做到匹配。}六、總結通過本次課程設計我中我付出了一些,也收獲了一些。 } Fout(rnext,d,fout,sum)。 inSt[i]=39。i=。 if(rcount!=0){ d++。 }}void WordCount::Fout(Word *r,int amp。 psibling=newnode。 else if(pdatach){ Insert(p,ch)。 while(psibling!=NULLamp。 pnext=newnode。ch=39。)||(ch=39。amp。 pcount=0。 newnodecount=pcount。p,char ch){//p節(jié)點前插入新節(jié)點 Word *newnode。 nodedata=ch。 }}WordCount::~WordCount(void){}void WordCount::InitStack(Stack amp。 fprintf(fout,%s%d,the number of all words:,sum)。 //開始計時 while((ch=fgetc(fin))!=EOF){//開始統(tǒng)計個數(shù) JoinTree(p,ch)。t open %s\n,inFile)。 strcat(outFile,\0)。i++) s1[i]=filename[i]。 clock_t t1。//d為不同單詞數(shù),j為當前行截止下標 unsigned int sum=0。include include WordCount::WordCount(){}WordCount::WordCount(char* filename){ char outFile[50]=pathOut,inFile[50]=pathIn。 WordCount(char* filesname)。 void Fout(Word *r,int amp。 void Insert(Word *amp。 void InitStack(Stack amp。}Stack。 struct node *next,*sibling。 system(pause)。y39。 std::system(CLS)。 fflush(stdin)。 if(choose==1){ countAllPaper()。 printf(請輸入功能號(1/2):)。 do{ printf(——————————————————Wele——————————————————\n)。 printf(本次統(tǒng)計耗時:%d ms\n,time)。//清空輸入緩沖區(qū) scanf(%s,search)。 SqString t。 }
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1