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

正文內(nèi)容

宿舍管理系統(tǒng)c語言程序設(shè)計-資料下載頁

2024-09-06 12:57本頁面

【導讀】printf("★請輸入你的選擇!head1=malloc;//*創(chuàng)建頭結(jié)點。printf("寫文件出錯,按任意鍵退出!printf("讀取信息錯誤!

  

【正文】 return 1; } p2=p1; p1=p1next; } } } return 0; } int add(void)//*信息添加 { struct node*p,*p1,*head; head=read1(); p=(struct node*)malloc(sizeof(struct node)); fflush(stdin); gets(pname); fflush(stdin); gets(pClass); fflush(stdin); scanf(%c,amp。psex); for(; psex! =39。f39。amp。amp。psex! =39。m39。; ) { printf(★性別輸入有誤 ,你必須正確輸入 39。f39?;蛘?39。m39。! \n); fflush(stdin); scanf(%c,amp。psex); } fflush(stdin); scanf(%d,amp。page); while(page 16||page 30) { printf(★你輸入的年齡段不在 1630 之間 ,請重新輸入! \n); scanf(%d,amp。page); } scanf(%ld,amp。pstunum); while(pstunum 100000||pstunum=1000000) { printf(★你輸入的學號不是六位數(shù) ,請重新輸入! \n); scanf(%ld,amp。pstunum); } scanf(%d,amp。pdornum); while(pdornum 16||pdornum 1) { printf(★你輸入的公寓號不在 116之間 ,請重新輸入! \n); scanf(%d,amp。pdornum); } scanf(%d,amp。proomnum); p1=head; while(p1next! =NULL) { p1=p1next; } p1next=p; pnext=NULL; p1=p; save(head); readout(); return(1); } int modify()//*信息修改 { int a; char x; char str[30]; char Class1[30]; struct node*p1,*head,*p2; head=read1(); a=search(head); p1=head; p2=p1; if(a) { while(p1! =NULL) { if(p1stunum==num) { printf(★修改姓名 ?(y or n)?\n); fflush(stdin); scanf(%c,amp。x); { if(x==39。y39。) { printf(★輸入新的姓名! \n); fflush(stdin); gets(str); strcpy(p1name,str); fflush(stdin); } } x=0; printf(★修改班級 ?(y or n)?\n); fflush(stdin); scanf(%c,amp。x); if(x==39。y39。) { printf(★輸入新的班級! \n); fflush(stdin); gets(Class1); strcpy(p1Class,Class1); }x=0; printf(★修改性別 ?(y or n)?\n); fflush(stdin); scanf(%c,amp。x); if(x==39。y39。) { printf(★輸入你修改后的性別! \n); fflush(stdin); scanf(%c,amp。p1sex); }x=0; printf(★修改年齡 ?(y or n)?\n); fflush(stdin); scanf(%c,amp。x); if(x==39。y39。) { printf(★輸入新的年齡! \n); fflush(stdin); scanf(%d,amp。p1age); } x=0; printf(★修改學號 ?(y or n)?\n); fflush(stdin); scanf(%c,amp。x); if(x==39。y39。) { printf(★輸入新的學號! \n); fflush(stdin); scanf(%d,amp。p1stunum); } x=0; printf(★修改樓棟號 ?(y or n)?\n); fflush(stdin); scanf(%c,amp。x); if(x==39。y39。) { printf(★輸入新的樓棟號! \n); fflush(stdin); scanf(%d,amp。p1dornum); } x=0; fflush(stdin); printf(★修改宿舍號 ?(y or n)?\n); fflush(stdin); scanf(%c,amp。x); if(x==39。y39。) { printf(★輸入新的宿舍號! \n); fflush(stdin); scanf(%d,amp。p1roomnum); } } p2=p1next; p1=p2; } system(cls); save(head); readout(); return(1); } return(0); } void total(struct node*head)//*信息統(tǒng)計 { int i=0; int boyp=0; int girlp=0; int over20=0; int blow20=0; struct node*p1; printf(統(tǒng)計信息如下 ! \n); for(p1=headnext; p1! =NULL; p1=p1next) i++; printf(◆共有學生 %d個人! \n,i); for(p1=headnext; p1! =NULL; p1=p1next) { if(p1sex==39。f39。) girlp++; if(p1sex==39。m39。) boyp++; if(p1age=20) blow20++; if(p1age 20) over20++; } printf(◆共有男生 %d人 \n,boyp); printf(◆共有女生 %d人 \n,girlp); printf(◆ 20 歲以下的同學有 (包括 20)%d 人! \n,blow20); printf(◆ 20 歲以上的同學有 %d 人! \n,over20); } main() { int decision=0; int flag; char c; struct node*head; head=NULL; print1(); flag=login(); if(flag) { system(cls); printf(★祝賀你登陸成功! \n); printf(★您現(xiàn)在可以對系統(tǒng)信息進行處理了! \n); for(c=39。y39。; c==39。y39。; ) { show(); scanf(%d,amp。decision); choose(decision); printf(!你還想對系統(tǒng)的管理信息進行其它操作嗎 ?\n); printf(\n); printf(★輸入 (y or n?)\n); fflush(stdin); scanf(%c,amp。c); system(cls); } } } MSN 空間完美搬家到新浪博客! 特別聲明: 1:資料來源于互聯(lián)網(wǎng),版權(quán)歸屬原作者 2:資料內(nèi)容屬于網(wǎng)絡(luò)意見,與本賬號立場無關(guān) 3:如有侵權(quán),請告知,立即刪除。
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1