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

正文內(nèi)容

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

2024-10-02 02:34 上一頁面

下一頁面
 

【正文】 (personnode *)malloc(sizeof(personnode))。 exit(0)。 fprintf(fp,%10s%20s%50s\n,personname,personxh,personfh)。 scanf(%s,filename)。 } fclose(fp)。 char xh1[16],xh2[16],xh3[16]。t open the file)。t open the file)。 strcpy(name1,personname)。 //文件結(jié)束 跳出循環(huán) offset2=ftell(fp)。 《 宿舍管理系統(tǒng)的設(shè)計與實現(xiàn) 》 第 18 頁 共 27 頁 strcpy(fh2,personfh)。 if(b==camp。 strcpy(name2,name3)。 strcpy(fh3,fh1)。 //將文件指針移動 offset1個字節(jié) strcpy(personname,name1)。// 排序后寫入文件 strcpy(personname,name2)。// 排序后寫入文件 《 宿舍管理系統(tǒng)的設(shè)計與實現(xiàn) 》 第 19 頁 共 27 頁 } fseek(fp,offset2,SEEK_SET)。 strcpy (xh1,personxh)。 fscanf(fp,%s%s%s\n,personname,personxh,personfh)。 d=strcmp(xh1,xh2)。 //若 a 為 1 則有序 else{ a=0。 //a 為 1 說明學(xué)號已經(jīng)有序 跳出循環(huán) rewind(fp)。 printf(%35s\n,thefile(thefile hava printf as studentnumber))。 } fclose(fp)。 personnode *person。 if((fp=fopen(filename,rb))==NULL) { printf(\n can39。 if(!strcmp(namekey,personname)) //比較是否相同 相同則輸出結(jié)果 否則輸出未找到記錄 { printf(\n\n have serched,the courrent is:)。 fclose(fp)。 person=(personnode *)malloc(sizeof(personnode))。t open the file )。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 } void search3() //按房號搜索函數(shù) { int k=0。 printf(\n please enter the roomnumber you want to serch:)。 exit(0)。 k=1。 person=(personnode *)malloc(sizeof(personnode))。 } printf(\n please enter the name,studentnumber and roomnumber \n)。 } void modify() //更新函數(shù) 用于修改指定學(xué)生姓名的記錄 { int k=0。 person=(personnode *)malloc(sizeof(personnode))。t open thefile)。 if(!strcmp(namekey,personname)) //比較是否相同 如 { k=1。 printf(\n please enter the new studentname,studentnumber and roomnumber : )。 } 《 宿舍管理系統(tǒng)的設(shè)計與實現(xiàn) 》 第 25 頁 共 27 頁 else printf(\n sorry, there is not the current of this people \n)。 long offset。 printf(\n please enter the name you want to delete : )。 exit(0)。 break。 scanf(%s,amp。) //刪除確認按鈕 { fseek(fp,offset,SEEK_SET)。 fclose(fp)。 printf(\t\t0creat a new datafile\n)。 printf(\t\t4 serch as roomnumber\n)。 printf(\t\t8printf\n)。 scanf(%d,amp。 case 1:readfile()。 case 3:search2()。 case 5:modify()。 case 7:append()。 case 9:exit(0)。 case 8:output()。 case 6: deleted()。 case 4:search3()。 case 2:search1()。 switch(m) { case 0:creat()。 printf(\n)。 printf(\t\t6delete\n)。 printf(\t\t2 serch as name\n)。 // m 用于控制菜單的選擇項 flag 用于控制菜單彈出 while(flag) { printf(%33s\n,thefile)。 } else rewind(fp)。 if(m==39。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 fscanf(fp,%s%s%s\n,personname,personxh,personfh)。 if((fp=fopen(filename,r+))==NULL) { printf(\n can39。 personnode *person。 } void deleted() //刪除函數(shù) 用于刪除指定學(xué)生姓名的記錄 { int k=0。 fseek(fp,offset,SEEK_SET)。 } } if(k) //相同 輸出記錄并進行修改 { printf(\n hava got it,the current is: )。 } while(!feof(fp)) { offset=ftell(fp)。 scanf(%s,namekey)。 char namekey[8]。 fprintf(fp,%10s%20s%
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1