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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)報(bào)告-學(xué)生宿舍管理系統(tǒng)(編輯修改稿)

2024-10-16 09:38 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 qnext=p。 q=p。 } fclose(fp)。 } int Display() /*將文件信息顯示出來 */ { Stu *head。 Stu *p。 InitStu(amp。head)。 Read_from_File(head)。 p=headnext。 system(cls)。 if(!p) 14 { printf(Have no element!)。 printf(\nEnd with 39。ESC39。)。 getch()。 return 0。 } printf(\n\t\t****歡迎進(jìn)入學(xué)生宿舍管理系統(tǒng) ****\n\n\n\n)。 printf(學(xué)號(hào) 姓名 性別 生日(年 _月 _日) 系別 專業(yè) 樓號(hào) 宿舍號(hào) 床號(hào) \n\n)。 while(p) { printf(%8d%8s%4c%6d%5d%8d%12s%8s%8d%8d%5d\n,pNum,pName,pSex, p,p,p,pDepartment,pSubject, p,p,p)。 p=pnext。 } printf(\nEnd with 39。ECS39。)。 getch()。 return 1。 } void Delete() /*刪除學(xué)生信息 */ { Stu *head。 Stu *p,*q。 char ch,h。 int N。 int Build_num,Room_num,Bed_num。 InitStu(amp。head)。 Read_from_File(head)。 q=head。 p=headnext。 do { system(cls)。 flushall()。 printf(\n\t\t****歡迎進(jìn)入學(xué)生宿舍管理系統(tǒng) ****\n)。 printf(\n\n\t\ta. 根據(jù)學(xué)生學(xué)號(hào)刪除 \n)。 printf(\n\n\t\ \n)。 printf(\n\n\t\t請(qǐng)選擇刪除方式 :)。 ch=getchar()。 while(1) { if(ch==39。a39。) 15 { printf(\n\n請(qǐng)輸入學(xué)生學(xué)號(hào) :)。 scanf(%d,amp。N)。 while(p) { if(pNum==N) { qnext=pnext。 free(p)。 p=qnext。 printf(刪除成功! )。 break。 } q=p。 p=pnext。 } if( p==NULL) { printf(\n***Not find the student!***)。 break。 } } else if(ch==39。b39。) { printf(\n\n請(qǐng)輸入宿舍信息 (樓號(hào) 宿舍 床號(hào) ): )。 scanf(%d %d %d,amp。Build_num,amp。Room_num,amp。Bed_num)。 while(p!=NULL) { if(p==Build_num amp。amp。 p==Room_num amp。amp。 p) { qnext=pnext。 free(p)。 p=qnext。 printf(刪除成功! )。 break。 } q=p。 p=pnext。 } if(p==NULL) { printf( Not find the student)。 break。 } } break。 } printf(\n\n****繼續(xù) ?Y/N)。 16 h=getch()。 }while(h==39。Y39。 ||h==39。y39。)。 Write_to_File(head)。 } void MidInsert() /*中間插入學(xué)生信息 */ { Stu *head。 Stu *p,*q。 char ch。 int N。 InitStu(amp。head)。 Read_from_File(head)。 q=headnext。 system(cls)。 printf(\n\t\t****歡迎進(jìn)入學(xué)生宿舍管理系統(tǒng) ****\n)。 flushall()。 do { printf(\n\n\t請(qǐng)輸入插入位置 : )。 scanf(%d,amp。N)。 while(q!=NULL) { p=(Stu *)malloc(sizeof(Stu *))。 if(qNum==N) { printf(\t\t 請(qǐng)輸入插入的學(xué)生信息 :\n )。 flushall()。 printf(\t 學(xué)號(hào) :)。 scanf(%d,amp。pNum)。 flushall()。 printf(\n\t 姓名 :)。 scanf(%s,pName)。 flushall()。 printf(\n\t 性別 :)。 scanf(%c,amp。pSex)。 flushall()。 printf(\n\t 生日(年 _月 _日) :)。 scanf(%d_%d_%d,amp。p,amp。p,amp。p)。 17 flushall()。 printf(\n\t 系別 :)。 scanf(%s,pDepartment)。 flushall()。 printf(\n\t 專業(yè) :)。 scanf(%s,pSubject)。 flushall()。 printf(\n\t 樓號(hào) :)。 scanf(%d,amp。p)。 flushall()。 printf(\n\t 宿舍號(hào) :)。 scanf(%d,amp。p)。 flushall()。 printf(\n\t 床號(hào) :)。 scanf(%d,amp。p)。 pnext=qnext。 qnext=p。 break。 } p=q。 q=qnext。 } if(q==NULL) printf(\t\t Not find !)。 Write_to_File(head)。 printf(\t 繼續(xù) ?Y/N)。 ch=getch()。 }while(ch==39。y39。||ch==39。Y39。)。 } Stu *HeadInsert(Stu *top) { Stu *p。 char ch。 InitStu(amp。top)。 Read_from_File(top)。 system(cls)。 printf(\n\t\t****歡迎進(jìn)入學(xué)生宿舍管理系統(tǒng) ****\n)。 flushall()。 do { p=(Stu*)malloc(sizeof(Stu))。 pnext=NULL。 printf(\t\t 請(qǐng)輸入插入的學(xué)生信息 :\n )。 18 flushall()。 printf(\t 學(xué)號(hào) :)。 scanf(%d,amp。pNum)。
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1