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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計-宿舍管理系統(tǒng)的設(shè)計與實現(xiàn)(已改無錯字)

2022-10-21 02:34:48 本頁面
  

【正文】 1 則有序 else{ a=0。 //a 為 0 怎無序 break。} fseek(fp,offset2,SEEK_SET)。 } if(a) break。 //a 為 1 說明學(xué)號已經(jīng)有序 跳出循環(huán) rewind(fp)。 } if(a) break。 ////若 a 為 1,則學(xué)號已有序排列,跳出總循環(huán),輸出文件 《 宿舍管理系統(tǒng)的設(shè)計與實現(xiàn) 》 第 20 頁 共 27 頁 } rewind(fp)。 printf(\n******************************************************************\n)。 printf(%35s\n,thefile(thefile hava printf as studentnumber))。 printf(%10s%20s%50s\n,name,studentnumber,roomnumber)。 while(!feof(fp)) //次循環(huán)用于 輸出文件 { fscanf(fp,%s%s%s\n,personname,personxh,personfh)。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 } fclose(fp)。 printf(*******************************************************************\n\n)。 } void search1() // 按 姓名搜索函數(shù) { int k=0。 char namekey[8]。 personnode *person。 person=(personnode *)malloc(sizeof(personnode))。 printf(\n please enter the namehead you need :)。 scanf(%s,namekey)。 if((fp=fopen(filename,rb))==NULL) { printf(\n can39。t open thefile)。 exit(0)。 } while(!feof(fp)) 《 宿舍管理系統(tǒng)的設(shè)計與實現(xiàn) 》 第 21 頁 共 27 頁 { fscanf(fp,%s %s %s\n,personname,personxh,personfh)。 if(!strcmp(namekey,personname)) //比較是否相同 相同則輸出結(jié)果 否則輸出未找到記錄 { printf(\n\n have serched,the courrent is:)。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 k=1。 } } if(!k) printf(\n\n sorry,there is not the current of thiss people \n)。 fclose(fp)。 } void search2() //按學(xué)號搜索函數(shù) { int k=0。 char xhkey[16]。 personnode *person。 person=(personnode *)malloc(sizeof(personnode))。 printf(\n please enter the roomnumber you want to serch: )。 scanf(%s,xhkey)。 if((fp=fopen(filename,rb))==NULL) { printf(\n can39。t open the file )。 exit(0)。 } while(!feof(fp)) { fscanf(fp,%s %s %s\n,personname,personxh,personfh)。 《 宿舍管理系統(tǒng)的設(shè)計與實現(xiàn) 》 第 22 頁 共 27 頁 if(!strcmp(xhkey,personxh)) ////比較是否相同 相同則輸出結(jié)果 否則輸出未找到記錄 { printf(\n\n have got it,the current is: )。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 k=1。 } } if(!k) printf(\n\n sorry,there is not the current of thiss people \n)。 fclose(fp)。 } void search3() //按房號搜索函數(shù) { int k=0。 char fhkey[30]。 personnode *person。 person=(personnode *)malloc(sizeof(personnode))。 printf(\n please enter the roomnumber you want to serch:)。 scanf(%s,fhkey)。 if((fp=fopen(filename,rb))==NULL) { printf(\n can39。t open thefile)。 exit(0)。 } while(!feof(fp)) { fscanf(fp,%s %s %s\n,personname,personxh,personfh)。 if(!strcmp(fhkey,personfh)) //比較是否相同 相同則輸出 《 宿舍管理系統(tǒng)的設(shè)計與實現(xiàn) 》 第 23 頁 共 27 頁 結(jié)果 否則輸出未找到記錄 { printf(\n\n have got it,the current is:)。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 k=1。 } } if(!k) printf(\n\n sorry,there is not the current of thiss people\n)。 fclose(fp)。 } void append() //插入函數(shù) 用于像已有文件插入一條新的學(xué)生信息記錄 { personnode *person。 person=(personnode *)malloc(sizeof(personnode))。 if((fp=fopen(filename,a))==NULL) { printf(\n can39。t open the file)。 exit(0)。 } printf(\n please enter the name,studentnumber and roomnumber \n)。 scanf(%s %s %s,personname,personxh,personfh)。 fprintf(fp,%10s%20s%50s\n,personname,personxh,personfh)。 fcl
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1