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

正文內(nèi)容

宿舍管理系統(tǒng)c語(yǔ)言程序設(shè)計(jì)(編輯修改稿)

2024-10-12 12:57 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 ets(); fflush(stdin); printf(★請(qǐng)你輸入密碼: \n); ch=getch(); for(i=0; ch! =39。\r39。; i++) { [i]=ch; printf(*); if(ch==8) printf(\b\b\b\b); ch=getch(); fflush(stdin); } [i]=0; str1=strcmp(,); str2=strcmp(,); if(str1==0amp。amp。str2==0) return(1); else printf(登錄失??! \n); flag=0; } break; case 3: exit(1); } } return(0); } struct node*creat()//*創(chuàng)建鏈表 { struct node*head,*p1,*p2; int i; char c=39。y39。; head=(struct node*)malloc(sizeof(struct node)); //*創(chuàng)建頭結(jié)點(diǎn) headnext=NULL; p1=head; for(i=0; c==39。y39。; )//*創(chuàng)建信息小提示 { system(cls); p2=(struct node*)malloc(sizeof(struct node)); printf(★輸入第 %d 個(gè)人的信息: \n,++i); //輸入學(xué)生信息 printf(姓名 \t班級(jí) \t\t 性別 \t 年齡 \t學(xué)號(hào) \t樓棟號(hào) \t 宿舍號(hào) \n);fflush(stdin); gets(p2name); fflush(stdin); gets(p2Class); fflush(stdin); scanf(%c,amp。p2sex); for(; p2sex! =39。f39。amp。amp。p2sex! =39。m39。; ) { printf(★性別輸入有誤 ,你必須正確輸入 39。f39?;蛘?39。m39。! \n); fflush(stdin); scanf(%c,amp。p2sex); } fflush(stdin); scanf(%d,amp。p2age); while(p2age 16||p2age 30) { printf(★你輸入的年齡段不在 1630 之間 ,請(qǐng)重新輸入! \n); scanf(%d,amp。p2age); } scanf(%ld,amp。p2stunum); while(p2stunum 100000||p2stunum=1000000) { printf(★你輸入的學(xué)號(hào)不是六位數(shù) ,請(qǐng)重新輸入! \n); scanf(%ld,amp。p2stunum); } scanf(%d,amp。p2dornum); while(p2dornum 16||p2dornum 1) { printf(★你輸入的公寓號(hào)不在 116之間 ,請(qǐng)重新輸入! \n); scanf(%d,amp。p2dornum); } scanf(%d,amp。p2roomnum); p1next=p2; p1=p2; printf(★還要輸入學(xué)生信息嗎 ,輸入 (y or n?)\n); c=getch(); fflush(stdin); system(cls); } p1next=NULL; return(head); } void save(struct node*head)//*保存文件 { struct node*p2; FILE*fp; if((fp=fopen(f: /,wt))==NULL) { printf(寫文件出錯(cuò),按任意鍵退出! ); getch(); exit(1); } for(p2=headnext; p2! =NULL; p2=p2next) fprintf(fp,%s\t%s\t%c\t%d\t%d\t%d\t%d\n, p2name,p2Class,p2sex,p2age,p2stunum,p2dornum,p2roomnum); getch(); fclose(fp); } void show(void)//*菜單顯示 { printf(\n); printf($$$$$$$$$$歡迎進(jìn)入學(xué)生宿舍信息管理系統(tǒng)! $$$$$$$$$$\n); printf(\n); printf(宿舍是我家 ,愛(ài)護(hù)靠大家 \n); printf(\n); printf(|*|\n); printf(||\n); printf(|▲ ); printf(\t▲ ); printf(\t▲ |\n); printf(||\n); printf(|▲ ); printf(\t▲ ); printf(\t▲ |\n); printf(||\n); printf(|▲ ); printf(\t▲ ); printf(▲ |\n); printf(||\n); printf(|*|\n); printf(請(qǐng)輸入你的選擇的信息處理方式的序號(hào)! \n); } void show1(void) { printf(*\n); printf(!創(chuàng)建信息小提示: \n); printf(\n); printf(\n); printf(◆ 39。f39?;蛘?39。m39。!其他均認(rèn)為是錯(cuò)誤操作! \n); printf(\n); printf(◆ 1630之間 ,其他均認(rèn)為是錯(cuò)誤操作!\n); printf(\n); printf(◆ ,如果學(xué)號(hào)少于或大于六位數(shù)字 ,系統(tǒng)認(rèn)為此操作為非法操作! \n); printf(\n); printf(◆ 116之間,其他數(shù)字均認(rèn)為是錯(cuò)誤操作! \n); printf(\n); printf(◆ ,故宿舍號(hào)在下列范圍內(nèi) ,其他區(qū)間均認(rèn)為是非法操作: \n); printf(\n); printf(▲一樓 101150\t 二樓 201250\t三樓 301350\n); printf(\n); printf(▲四樓 401450\t 五樓 501550\n); printf(\n); printf(\n); printf(*\n); } struct node*read1(void) { struct node*head,*p1,*p2; FILE*fp; if((fp=fopen(f: /,rt))==NULL) { printf(★讀取信息錯(cuò)誤! ,按任意鍵退出! ); getch(); exit(1); } head=(struct node*)malloc(sizeof(struct node)); headnext=NULL; p1=head; while(! feof(fp)) { p2=(struct node*)malloc(sizeof(struct node)); fscanf(fp,%s\t%s\t%c\t%d\t%d\t%d\t%d\n, p2name,p2Class,amp。p2sex,amp。p2age,amp。p2stunum,amp。p2dornum,amp。p2roomnum); p1next=p2; p1=p2; } p1next=NULL; fclose(fp); return(head); } void readout(void)//*從磁盤中讀取信息顯示在屏幕上 { struct node*head,*p1,*p2; FILE*fp; if((fp=fopen(f: /,rt))==NULL) { printf(★讀取信息錯(cuò)誤! ,按任意鍵退出! ); getch(); exit(1); } head=(struct node*)malloc(sizeof(struct node)); hea
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1