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

正文內(nèi)容

c語(yǔ)言課程設(shè)計(jì)賓館住宿系統(tǒng)-資料下載頁(yè)

2025-06-29 07:04本頁(yè)面
  

【正文】 * pRST){ char * szTitles=How many types?。 char * szRoom={How many rooms?}。 int i,num_rooms,num。 Pfangjianzhonglei pRST_temp,pRST_temp2。 (*pRST)=(Pfangjianzhonglei)malloc(sizeof(fangjianzhonglei))。 printf(szTitles)。 scanf(%d,amp。num)。 for(i=1,pRST_temp=(*pRST)。i=num。i++){ printf(\n\tthe %dth type\n,i)。 printf(%s,szRoom)。 scanf(%d,amp。num_rooms)。 pRST_tempshuliang=num_rooms。 pRST_tempzhonglei=i+39。039。 huodenkefang(pRST_temp,num_rooms)。 pRST_tempnext=(Pfangjianzhonglei)malloc(sizeof(fangjianzhonglei))。 pRST_temp2=pRST_temp。 pRST_temp=pRST_tempnext。 } pRST_temp2next=NULL。 return 0。}define GI_TITLES 3int charujiemian(Pfangjianzhonglei * pRST){ char * szInsert[]={ Please select the function, Insert a type, Insert a Room, Insert a Custom}。 int (*Insert_Fun[])(Pfangjianzhonglei)={ tianjiazhonglei,tianjiakefang,tianjiakehu}。 int count。 count=huodecaidan(szInsert,GI_TITLES)。 Insert_Fun[count]((*pRST))。 return 0。}define GM_TITLES 2int xiugaijiemian(Pfangjianzhonglei * pRST){ char * szDelete[]={ Please select the function, Modify a Room, Modify a Custom}。 int (*Modify_Fun[])(Pfangjianzhonglei )={ xiugaikefangzhonglei,xiugaikehu}。 int count。 count=huodecaidan(szDelete,GM_TITLES)。 Modify_Fun[count]((*pRST))。 return 0。}define GD_TITLES 3int shanchujiemian(Pfangjianzhonglei * pRST){ char * szDelete[]={ Please select the function, Delete a type, Delete a Room, Delete a Custom}。 int (*Delete_Fun[])(Pfangjianzhonglei *)={ shanchuzhonglei,shanchukefang,shanchukehu}。 int count。 count=huodecaidan(szDelete,GD_TITLES)。 Delete_Fun[count](pRST)。 return 0。}define GS_TITLES 3int suousuojiemian(Pfangjianzhonglei * pRST){ char * szTitles[]={ Please select the function, Search for a type, Search for a room, Search for a custom}。 int (* fun[GS_TITLES])(Pfangjianzhonglei )={sousuokefangzhonglei,sousuokefangxinxi,sousuokehu}。 int count。 count=huodecaidan(szTitles,GS_TITLES)。 fun[count]((*pRST))。 return 0。}define MAX_SHOW 100int yindaoshuru(Pfangjianzhonglei * pRST){ Pfangjianzhonglei pRST_temp。 int count,i。 char ** Buf。 Buf=(char **)malloc(sizeof(char*)*MAX_SHOW)。 Buf[0]=(char *)malloc(sizeof(char)*BUFSIZE)。 sprintf(Buf[0],Please select a type)。 for(pRST_temp=(*pRST),i=1。pRST_temp。 i++,pRST_temp=pRST_tempnext){ Buf[i]=(char *)malloc(sizeof(char)*BUFSIZE)。 sprintf(Buf[i],Type:%c Rooms:%d,pRST_tempzhonglei,pRST_tempshuliang)。 } count=huodecaidan(Buf,i1)。 for(i=0,pRST_temp=(*pRST)。icount。i++,pRST_temp=pRST_tempnext) 。 Buf_Clear()。 Buf_Fill_Tree(pRST_temp)。 Display()。/*緩沖區(qū)中的信息*/ getch()。 return 0。}define GCO_TITLES 2define TOP 10int tongjijiemian(Pfangjianzhonglei * pRST){ char * szTitles[]={ Please select the function, The top10 of Customs, The top10 of price}。 Pfangjianzhonglei pRST2。 int (*p[GCO_TITLES])(void *,void *)={jiyushijian,jiyujiage}。 int count。 count=huodecaidan(szTitles,GCO_TITLES)。 pRST2=(*pRST)。 Buf_Clear()。 while(pRST2){ Buf_Fill_Tree(pRST2)。 pRST2=pRST2next。 } Collect(p[count],TOP)。 Display()。 return 0。}/*通過(guò)從硬盤讀入來(lái)創(chuàng)建一個(gè)鏈表*/int yindaozairu(Pfangjianzhonglei * pRST){ char * error=Can39。t open the files。 int i,j。 Pfangjianzhonglei pRST_temp,pRST_temp2。 Pfangjian pRF,pRF2。 Pkehu pC,pC2。 FILE * fTree,* fRoom,* fCustom。 fTree=fopen(,rb)。 fRoom=fopen(,rb)。 fCustom=fopen(,rb)。 if(!fTree||!fRoom||!fCustom){ printf(error)。 exit(0)。 } (*pRST)=(Pfangjianzhonglei)malloc(sizeof(fangjianzhonglei))。 pRST_temp=(*pRST)。 while(1){ if(!huodekefangzhonglei(fTree,pRST_temp)) break。 pRST_tempfirst=(Pfangjian)malloc(sizeof(fangjian))。 for(pRF=pRST_tempfirst,i=pRST_tempshuliang。i。i){ huodekefang(fRoom,pRF)。 pRFRecord=(Pkehu)malloc(sizeof(kehu))。 for(pC=pRFRecord,j=pRFtimes。j。j){ huodekehu(fCustom,pC)。 pCnext=(Pkehu)malloc(sizeof(kehu))。 pC2=pC。 pC=pCnext。 }/*for(j*/ pC2next=NULL。 free(pC)。 pRF2=pRF。 pRFnext=(Pfangjian)malloc(sizeof(fangjian))。 pRF=pRFnext。 }/*for(i*/ pRF2next=NULL。 free(pRF)。/*free the last one*/ pRST_temp2=pRST_temp。 pRST_tempnext=(Pfangjianzhonglei)malloc(sizeof(fangjianzhonglei))。 pRST_temp=pRST_tempnext。 }/*while(!feof*/ pRST_temp2next=NULL。 free(pRST_temp)。 fclose(fTree)。 fclose(fRoom)。 fclose(fCustom)。 return 0。}/*將當(dāng)前鏈表保存到磁盤*/int yindaobaocun(Pfangjianzhonglei * pRST){ char * error=Can39。t open the files。 int i,j。 Pfangjianzhonglei pRST_temp。 Pfangjian pRF。 Pkehu pC。 FILE * fTree,* fRoom,* fCustom。 fTree=fopen(,wb)。 fRoom=fopen(,wb)。 fCustom=fopen(,wb)。 if(!fTree||!fRoom||!fCustom){ printf(error)。 exit(0)。 } pRST_temp=(*pRST)。 while(pRST_temp){ xierukefang(fTree,pRST_temp)。 for(pRF=pRST_tempfirst,i=pRST_tempshuliang。i。i){ xierukefangxinxi(fRoom,pRF)。 for(pC=pRFRecord,j=pRFtimes。j。j){ xierukehuxinxi(fCustom,pC)。 pC=pCnext。 }/*for(j*/ pRF=pRFnext。 }/*for(i*/ pRST_temp=pRST_tempnext。 }/*while(pRST_temp*/ fclose(fTree)。 fclose(fRoom)。 fclose(fCustom)。 return 0。}/*退出*/int yindaotuichu(Pfangjianzhonglei * pRST){ exit(0)。 return 0。 }/*功能向?qū)?,function(int)是之前菜單中選中的功能,pRST是指向主鏈表頭指針的指針*/int xiangdaohejiemian(int function,Pfangjianzhonglei * pRST){ /*功能函數(shù),用于在顯示區(qū)域顯示相關(guān)信息*/ int (* fun[])(Pfangjianzhonglei *)={ yindaochuangjian,charujiemian,xiugaijiemian,shanchujiemian, suousuojiemian,yindaoshuru,tongjijiemian,yindaozairu, yindaobaocun,yindaotuichu}。 fun[function](pRST)。 return 0。}37 / 3
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1