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

正文內(nèi)容

c語(yǔ)言實(shí)習(xí)報(bào)告機(jī)房機(jī)位預(yù)約模擬(參考版)

2025-01-20 13:02本頁(yè)面
  

【正文】 學(xué)會(huì)了把所學(xué)的知識(shí)用于實(shí)踐。 } 五.上機(jī)操作: (1)主菜單如下: (2)選3,進(jìn)入預(yù)約模塊: (3)選1,進(jìn)入“查詢我的預(yù)約狀態(tài)”模塊: (4)選2,進(jìn)入查詢空機(jī)位模塊: (5)選4,進(jìn)入取消預(yù)約模塊: (6)選5,進(jìn)入排隊(duì)等待模塊: (7)選6,進(jìn)入查詢等待信息模塊: (8)選0,結(jié)束程序: 按任意鍵,則結(jié)束運(yùn)行,返回源程序。 } else printf(There is no waiter during this period!\n)。q=qnext) printf(%s\n,qdata)。 for(。 if(TimeQueue[n].CNumMAX){ printf(The waiter are:\n)。amp。n)。 printf(Please input the time you want to search the waiter.\n)。[流程圖]N輸入要查詢的時(shí)間n判斷n是否8-20Yn=s(n)提示:輸入錯(cuò)誤請(qǐng)重新輸入根據(jù)n的值判斷TimeQueue[n]Cnum的值是否小于最大值MAX YYN有等待者沒(méi)有等待者【程序】void inquir_waiting(){ int n。} } else printf( input again.\n)。 TimeQueue[n].CNum。 else qnext=Remnext。 TimeQueue[n].middle=TimeQueue[n].middlenext。 printf(Succeed to out the queue!\n)。 free(Rem)。 printf(“Succeed to out the queue!\n)。 free(Rem)。 if(iMAX){/*注意退出預(yù)定的情況包括退出在等待隊(duì)列中預(yù)定的情況!*/ if(Remnext==NULL){ qnext=NULL。 for(i=1。 Rem=TimeQueue[n].first。 scanf(%s,Infor)。amp。n)。 printf(Please input the time you have booked.\n)。 struct node *q。/*記載刪除點(diǎn)的隊(duì)列位置*/ char Infor[10]。 退出預(yù)約【程序】void cancel(){ int n。第二種情況就是取消預(yù)約的人本來(lái)就在等待隊(duì)列中,只需要直接刪除該結(jié)點(diǎn)即可。 }(5)取消預(yù)約模塊[分析] 要取消預(yù)約,有兩種情況,第一是從有機(jī)位的人要取消預(yù)約,在該種情況下,排隊(duì)的第一人的位置就插入到該取消者的位置。No wait!)。\n)。 TimeQueue[n].CNum++。 TimeQueue[n].last=Rem。 Remlocat=0。 strcpy(Remdata,Infor)。\n)。 TimeQueue[n].CNum++。 pnext=Rem。 p=TimeQueue[n].last。 Remnext=NULL。 if((TimeQueue[n].CNum)==MAX){ Rem=(struct node *)malloc(sizeof(struct node))。 if(TimeQueue[n].CNum=MAX){ printf(Please input
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1