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

正文內(nèi)容

c語(yǔ)言課程設(shè)計(jì)報(bào)告學(xué)生宿舍管理系統(tǒng)-wenkub

2022-10-18 08:06:46 本頁(yè)面
 

【正文】 ◎錄入:使用結(jié)構(gòu)體,要求用戶輸入 樓棟、房號(hào) 、面積、可住人數(shù)、已住人數(shù) ◎刪除 : 按房號(hào)刪除以上信息 3 ◎查詢(xún): 按房號(hào)查詢(xún)以上信息 ◎修改: 按房號(hào)修改以上信息 ◎ 排序 : 按已住人數(shù)排序信息 2. 函數(shù)原型聲明 struct room *add(struct room *head)。//添加函數(shù) struct room *del(struct room *h)。//排序函數(shù) void can()。 通過(guò)對(duì)程序的注釋和畫(huà)流程圖,形成了一套自己編程的風(fēng)格,和清晰地思路,使思維更加條理化,清晰化。 int maxnum。 struct room *add(struct room *head)。//查詢(xún)與修改函數(shù) struct room *sort(struct room *head)。 head=(struct room *)malloc(sizeof(struct room))。 getchar()。 printf(|| ||\n)。 printf(|| ||\n)。 flushall()。amp。 goto A。 continue。 while(y!=1amp。 } if(y==1) {system(cls)。 case 3: show(head)。 while(y!=1amp。 } if(y==1) {system(cls)。 } case 4: serh(head)。//修改點(diǎn) printf(是否返回菜單界面進(jìn)行其他操作?( 1/0) \n)。amp。 continue。 case 6: can()。 Q: if(x==6) break。 printf(請(qǐng)輸入要登記的入房數(shù): \n)。 printf(數(shù)據(jù)須按規(guī)定順序輸入,不同數(shù)據(jù)用空格分開(kāi)。i++) { p=(struct room*)malloc(sizeof(struct room))。pFnum,amp。 pnext=hnext。 struct room *p,*q。 scanf(%d,amp。 free(p)。 p=pnext。 } 14 void show(struct room *h) { struct room *p。 while(p) { printf(%7d%7d%8d%13d%8d\n,pLnum,pFnum,psqua,pmaxnum,pinnum)。 p=hnext。 15 while(pFnum!=z) { p=pnext。x)。 goto Z。 printf(%7d%7d%8d%13d%8d\n,pLnum,pFnum,psqua,pmaxnum,pinnum)。 if(y==1) { printf(請(qǐng)對(duì)入住信息進(jìn)行修改(按順序輸入) \n)。psqua,amp。 printf(\n 樓號(hào) 房號(hào) 面積 所容納人數(shù) 已入住人數(shù) \n\n)。 /*將原表的頭指針?biāo)傅南乱粋€(gè)結(jié)點(diǎn)作頭指針 */ hnext=NULL。 /*設(shè)定移動(dòng)指針 p1,從頭指針開(kāi)始 */ p2=h。 /*待排序點(diǎn)值小
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1