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

正文內容

宿舍管理查詢系統課程設計-免費閱讀

2025-06-15 08:02 上一頁面

下一頁面
  

【正文】 即使是課本上的原程序算法,自己寫起來都感覺有點生疏。 case 8:output()。 case 4:search3()。 switch(m) { case 0:creat()。 printf(\t\t6delete\n)。 // m 用于控制菜單的選擇項 flag 用于控制菜單彈出 while(flag) { printf(%33s\n,thefile)。 if(m==39。 fscanf(fp,%s%s%s\n,personname,personxh,personfh)。 personnode *person。 fseek(fp,offset,SEEK_SET)。 } while(!feof(fp)) { offset=ftell(fp)。 char namekey[8]。t open the file)。 if(!strcmp(fhkey,personfh)) //比較是否相同 相同則輸出結果 否則輸出未找到記錄 { printf(\n\n have got it,the current is:)。 personnode *person。 } while(!feof(fp)) { fscanf(fp,%s %s %s\n,personname,personxh,personfh)。 char xhkey[16]。 exit(0)。 } void search1() // 按姓名搜索函數 { int k=0。 ////若 a 為 1,則學號已有序排列,跳出總循環(huán),輸出文件 } rewind(fp)。amp。 break。 strcpy( personfh,fh2)。 strcpy(fh2,fh3)。d0) //如果 學號 1 大于等于學號 2 怎交換全部數據 { strcpy(name3,name1)。 strcpy (name2,personname)。 } while(!feof(fp)) // 從文件頭開始遍歷 { while(!feof(fp)) //對兩組數據進行排序 { offset1=ftell(fp)。 person=(personnode *)malloc(sizeof(personnode))。t open thefile:\n)。 scanf(%s,personname)。 //文件名 FILE *fp。查詢函數 ()添加數據紀錄函數 insert()刪除數據紀錄函數 delete ()修改數據紀錄函數 updata ()這些函數都是在同一等級上的函數,是平行關系。 //姓名 char xh[16]。 ………………………… .. : 為宿舍管理人員編寫一個宿舍管理查詢軟件。調用按不同關鍵字查詢的子函數 若存在相應的查詢結果則顯示在屏幕上,若查找的紀錄不存在則提示該紀錄不存在,請建立相應的數據紀 5) insert() //添加數據紀錄的函數 初始條件:必須已經建立了數據文件 操作結果:在數據文件中添加新的紀錄 若沒有建立數據文件則添加失敗。 //學號 char fh[30]。 if((fp=fopen(filename,w+))==NULL) { printf(\n you have no enter the filename,can not font the file)。 } void readfile() //文件讀取函數 用于打開已有 的二進制數據文件 {printf(\n please enter the fileroad:\n)。 char name1[8],name2[8],name3[8]。 //a 為循環(huán)結束判定變量 b, c, d 用于起泡排序時學號交換的替換 if((fp=fopen(filename,r+))==NULL) { printf(\n can39。 if(feof(fp)) break。 d=strcmp(xh1,xh2)。 strcpy(xh2,xh3)。 fprintf(fp,%10s%20s%50s\n,personname,personxh,personfh)。 fscanf(fp,%s%s%s\n,personname,personxh,personfh)。 c=strlen(xh2)。 } if(a) break。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 scanf(%s,namekey)。 } } if(!k) printf(\n\n sorry,there is not the current of thiss people \n)。 if((fp=fopen(filename,rb))==NULL) { printf(\n can39。 fclose(fp)。t open thefile)。 } void append() //插入函數 用于像已有文件插入一條新的學生信息記錄 { personnode *person。 fclose(fp)。 if((fp=fopen(filename,r+))==NULL) { printf(\n can39。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 char m。t open the file )。 printf(\n are you sure to delete
點擊復制文檔內容
醫(yī)療健康相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1