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

正文內(nèi)容

最新電子辭典課程設(shè)計doc-在線瀏覽

2024-08-09 02:39本頁面
  

【正文】 函數(shù)參數(shù):char *函數(shù)返回值類型:void函數(shù)功能:清除字符串后的空格 模塊2函數(shù)原型:void module2(void)函數(shù)參數(shù):void函數(shù)返回值類型:void函數(shù)功能:建立二進制索引文件函數(shù)原型:void build_dat_index(array_p,char *)函數(shù)參數(shù):array_p,char *函數(shù)返回值類型:void函數(shù)功能:生成二進制索引文件函數(shù)原型:index_p write_content_dat_index(array_p,char *)函數(shù)參數(shù):array_p,char *函數(shù)返回值類型:index_p函數(shù)功能:將哈希表中的內(nèi)容寫進二進制文件,并保存每個單詞所對的索引,生成目錄函數(shù)原型:long write_list_dat_index(index_p,char *,long *)函數(shù)參數(shù):index_p,char *,long *函數(shù)返回值類型:long函數(shù)功能:將目錄寫進dat文件,并保存目錄開始的索引和目錄中單詞的個數(shù)函數(shù)原型:void write_listkey_dat_index(long)函數(shù)參數(shù):long函數(shù)返回值類型:void函數(shù)功能:將目錄開始的索引寫進dat文件函數(shù)原型:void write_wordnum_dat_index(long)函數(shù)參數(shù):long函數(shù)返回值類型:void函數(shù)功能:將目錄中單詞的個數(shù)寫進dat文件函數(shù)原型:index_p insert_index_node_index(index_p,index_p)函數(shù)參數(shù):index_p,index_p函數(shù)返回值類型:index_p函數(shù)功能:目錄結(jié)點插到目錄鏈表頭部 模塊3函數(shù)原型:void module3(void)函數(shù)參數(shù):void函數(shù)返回值類型:void函數(shù)功能:使用二進制索引文件進行單詞查詢函數(shù)原型:index_p load_memory_bin(char *,index_p)函數(shù)參數(shù):char *,index_p函數(shù)返回值類型:index_p函數(shù)功能:將二進制索引文件中的目錄加載到內(nèi)存中,采用鏈表結(jié)構(gòu)函數(shù)原型:long search_index_bin(index_p,char *) 函數(shù)參數(shù):index_p,char *函數(shù)返回值類型:long函數(shù)功能:目錄鏈表中查找單詞對應(yīng)的索引函數(shù)原型:word_p search_word_with_index_bin(char *,long) 函數(shù)參數(shù):char *,long函數(shù)返回值類型:word_p函數(shù)功能:dat中查找某個索引相對應(yīng)的單詞內(nèi)容及解釋 模塊4函數(shù)原型: void module4(void) 函數(shù)參數(shù):void函數(shù)返回值類型:void函數(shù)功能:添加新詞到自定義文本中函數(shù)原型:void write_word_mytext_insert(char *,char *)函數(shù)參數(shù):char *,char *函數(shù)返回值類型:void函數(shù)功能:寫入新詞及其解釋到自定義文本 編碼 模塊1代碼include include include include /**//* 模塊1: 使用文本詞庫進行單詞查詢 */ /**//**/ void module1(void){ int i。 array_p point=(array_p)malloc(sizeof(array_t))。i26。 pointhash[i]ch=39。+i。 } point=load_memory_text(,point)。 gets(str)。 if(strcmp(str,Exit)==0) return 。 if(result==NULL){ word_p result2=search_word_mytext(,str)。 else{ trans_p p=result2head。 p=pnext。 while(p!=NULL){ puts(ptrans_name)。 } } } }}/*,采用哈希表結(jié)構(gòu)*/array_p load_memory_text(char *filename,array_p point){ int i,j,m,c,flag。 word_p new_word。 if((fp=fopen(filename,r))==NULL){ printf(Sorry,file open failed!\n)。 } while(1){ char buffer[SIZE]={39。},str[SIZE]={39。}。 if((c=fgetc(fp))==EOF){ fclose(fp)。 } if(c==39。){ trans_head=NULL。 while((c=fgetc(fp))!=39。){ buffer[i++]=c。\n39。39。 else{ new_trans=create_trans_node_text(str)。 j=0。mSIZE。\039。 trans_head=insert_trans_node_text(trans_head,new_trans)。 for(i=0。i++){ if(buffer[0]==pointhash[i]ch){ flag=1。 break。 return point。 for(i=0。i++){ if(str[0]==pointhash[i]ch){ word_p p=pointhash[i]next。 else p=pnext。 } } return NULL。 array_p point=(array_p)malloc(sizeof(array_t))。i26。 pointhash[i]ch=39。+i。 } point=load_memory_text(filename,point)。 return result。 strcpy(newtrans_name,str)。 newnext=NULL。 }/**/trans_p insert_trans_node_text(trans_p head,trans_p newnode){ if(head==NULL){ newnodenext=NULL。 } else{ trans_p p=head。 newnodenext=NULL。 } return head。 strcpy(newnodeword_name,str1)。 newnodehead=head。 newnodetrans_num=get_trans_num(newnodehead)。}/**/word_p insert_word_node_text(word_p head,word_p newnode){ if(head==NULL){ newnodenext=NULL。 } else{ word_p p=head。 newnodenext=NULL。 } return head。 trans_p p=head。 p=pnext。}/**/void print_hash(array_p point){ int i。 for(i=0。i++){ p=pointhash[i]next。 trans_p t=phead。,ttrans_name)。 } putchar(39。)。 } } return 。 while(p!=NULL){ puts(pword_name)。 while(t!=NULL){ printf(%s。 t=tnext。\n39。 p=pnext。}/**/void clear_space(char *str){ if(str[strlen(str)1]==39。){ str[strlen(str)1]=39。 clear_space(str)。} 模塊2代碼include include include include /*
點擊復(fù)制文檔內(nèi)容
外語相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1