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

正文內(nèi)容

最新數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(更新版)

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

下一頁面
  

【正文】 9。i++)//[i]復制到filename數(shù)組 filename[files_num][i]=[i]。 char path[50]=pathIn。//存放頁碼,行數(shù)}SearchOut。數(shù)組頭指針指向下一個非字母字符,若該字符為‘\n’,行加1。(類頭文件):主要包含類成員、方法聲明,定義結(jié)構(gòu)體和常數(shù)等 。 //輸出統(tǒng)計結(jié)果字母棧類型(2)模塊劃分和層次結(jié)構(gòu)劃分和層次結(jié)構(gòu)(3)函數(shù)原型清單主程序下函數(shù)清單函數(shù)原型:void countAllPaper() 函數(shù)功能:統(tǒng)計所有文件中單詞函數(shù)原型:void Search()函數(shù)功能:查找函數(shù)函數(shù)原型:void getFiles(unsigned int amp。 // 存放行數(shù)}SearchOut。二、系統(tǒng)功能和原始數(shù)據(jù)(1)系統(tǒng)功能有多篇英文文章存放于文件中,每行約等于80個字符,每頁約等于40行。 目: 文章中單詞查找 專 業(yè): 軟件工程     起止時間: - 集美大學計算機工程學院軟件工程教研室制2015 年 7 月 09日 //串數(shù)據(jù)域 int length。 //next指向下一個字母節(jié)點 struct node *sibling。node,int ch)函數(shù)功能:使用ch字符初始化節(jié)點函數(shù)原型:void Insert(Word *amp。若為字母字符,則將在當前節(jié)點(假設(shè)為q)的next域(下一層)的節(jié)點中查找到一個字母的合適位置(使每一層有序),若該層沒有該字母的節(jié)點則新建節(jié)點。圖1 查找單詞模塊流程圖 (二)程序調(diào)試(1)統(tǒng)計單詞(2)查找單詞 五、程序清單主程序:pragma onceinclude include include includeincludeinclude include include include include iostreamdefine MaxFiles 30//文件夾下最多文件數(shù)define FileNameLength 20//文件名最大長度define PageSize 40//單頁最大行數(shù)define MaxLength 30//單詞最大長度define RowSize 80//單行最大長度define pathIn F:\\Test\\paper\\define pathOut F:\\Test\\count\\typedef struct{ char data[MaxLength]。//文件數(shù)}Param。FileInfo))==1L) printf(沒有找到匹配的項目\n)。//添加‘\0’ files_num++。 filename[files_num][i]=39。//存放文件列表數(shù)組MaxFiles為可讀最大文件數(shù),20為文件名長度 unsigned int files_num=0。i++){ hThread[i]=(HANDLE)_beginthreadex(NULL,0,count,files[i],0,amp。}void InitSqString(SqString amp。 =i。 int j=0,page,row,k,rear。 FILE *fin,*fout。 strcat(inFile,files[i])。//文件末尾標志 fprintf(fout,\n\nWord in %s location:\n,files[i])。k++)//讀滿temp temp[k]=fgetc(fin)。||(temp[k]39。//rear指向最后一個非字母 if(k=0) temp[k]=39。amp。Z39。//s已滿,輸出并初始化 if(%100==99){ OutFile(s,fout)。Z39。 //若為換行符,則行數(shù)加1 if ( ch==39。 OutFile(s,fout)。}void Search(){ char search[MaxLength]。 if(time!=1){ printf(已統(tǒng)計可匹配單詞:%s\n,search)。 printf(————————————————————————————————————————\n)。 } else printf(輸入不正確!\n)。||ifContinue==39。 unsigned int count。 unsigned int usedTime。p,char ch)。}。 InitStack(St)。 strcat(outFile,s1)。 } t1=clock()。//將計時差存入txt fclose(fout)。}void WordCount::Insert(Word *amp。//p節(jié)點賦新值 pdata=ch。z39。//創(chuàng)建并初始化節(jié)點 Init(newnode,ch)。 if(pdata==ch) return。 p=root。 for(。 sum+=rcount。再有,在傳參數(shù)時,由于之前對char[][],char*,string區(qū)別不是很清楚也花了一些時間。參考資料: [1] Jeffrey (第五版).北京:清華大學出版社,200819
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1