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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)(航空客運(yùn)訂票系統(tǒng))-在線瀏覽

2024-08-05 07:26本頁(yè)面
  

【正文】 Next。 Continue()。 /*建立臨時(shí)航線結(jié)點(diǎn)*/ while(1) { if(Head==NULL)/*航線為空*/ { p1=p2=new Flight。 } else { p1=new Flight。 /*前一航線結(jié)點(diǎn)指向當(dāng)前航班結(jié)點(diǎn)*/ p2=p1。 printf(\n\t請(qǐng)輸入終點(diǎn)站名:)。p2Des_Name)。 scanf(%s,amp。 if(Find_Line(Head,p2Flight_No)) /*存在航班號(hào)*/ printf(\n\t航班號(hào)已經(jīng)存在!\n)。 } printf(\n\t請(qǐng)輸入飛機(jī)號(hào):)。p2Plane_No)。 scanf(%d,amp。 if(p2Week_Day1||p2Week_Day7) printf(\n\t輸入日期有誤,請(qǐng)重新輸入!\n)。 } printf(\n\t請(qǐng)輸入座位數(shù)量:)。p2Customer_Amount)。 scanf(%d,amp。 printf(\n\t請(qǐng)輸入二等艙的價(jià)錢:)。p2Price[1])。 scanf(%d,amp。 p2Free_Amount=p2Customer_Amount。 /*該航線定票乘客頭指針為空*/ p2ReplName=NULL。 if(Continue()==39。) { p2Next=NULL。 } }}/*航線是否為空函數(shù)*/int Empty_Flight(){ if(Head==NULL) { system(cls)。 getch()。 } else return 0。 Flight *p1。 if(Empty_Flight()) /*航班線為空*/ return。 printf(\n____________________________________________________________________________\n)。 while(p1!=NULL) { printf(\n%9s%10s%9s%9d%9d%9d%8d%8d%8d,p1Des_Name,p1Flight_No,p1Plane_No,p1Week_Day, p1Customer_Amount,p1Free_Amount,p1Price[0],p1Price[1],p1Price[2])。 } printf(\n_____________________________________________________________________________\n)。 getch()。 system(cls)。 printf(\n_____________________________________________________________________________\n\n)。 printf(\\n)。 printf(\\n)。 printf(\t請(qǐng)選擇您想要的服務(wù):)。c)。139。break。239。break。339。break。439。 } } }/*訂票辦理函數(shù)*/void bookingMenu(){ int Ticket_Count,IDinfor,i,flag=0。 /*記錄滿足條件的航線的定票結(jié)點(diǎn)*/ Flight *p1。 /*臨時(shí)性定票乘員結(jié)點(diǎn)*/ Customer *p3。 /*用戶輸入的航班數(shù)據(jù)*/ char temp。 int tag=0。 /*是否執(zhí)行候補(bǔ)操作標(biāo)志位*/ if(Empty_Flight()) /*航班線為空*/ return。 flag=0。 tag=0。 scanf(%s,amp。 if(Find_Line(Head,answer,p1,Flight_No)) /*調(diào)用航線查找函數(shù),若存在則進(jìn)行以下操作*/ { while(1) /*數(shù)據(jù)合法性檢驗(yàn)*/ { printf(\n\t請(qǐng)輸入您想要訂購(gòu)的票的數(shù)量:)。Ticket_Count)。 getch()。 } if(p1Free_Amount=Ticket_Count) { Customer_Count++。 /*表明進(jìn)入了訂票實(shí)際操作*/ IsRepl=1。 /*建立該航線的首位乘客結(jié)點(diǎn)*/ p1CustName=Custp1[Flight_No]。 Custp1[Flight_No]Next=p2。 } IsEmpty=0。 /*訂票數(shù)*/ IDinfor=p1Customer_Amountp1Free_Amount+1。 /*賦座位號(hào)*/ p1Free_Amount=Ticket_Count。 scanf(%s,amp。 while(1) /*數(shù)據(jù)合法性檢驗(yàn)*/ { printf(\n\t請(qǐng)輸入艙位等級(jí):)。Custp1[Flight_No]Rank)。139。amp。339。 getch()。 } printf(\n\t請(qǐng)輸入您的ID信息:)。Custp1[Flight_No]IDinfor)。 else printf(\n\t)。 for(i=1。i++) /*打印座位號(hào)*/ { printf(\n\t您所預(yù)定的座位號(hào)是%d,IDinfor++)。 } printf(\n)。 IsRepl=0。 IsRepl=0。 scanf(%s,amp。 if(temp==39。||temp==39。)/*以下為候補(bǔ)操作*/ { if(p1ReplName==NULL) { Replp1[Flight_No]=p3=new Customer。 } else { p3=new Customer。 Replp1[Flight_No]=p3。 /*候補(bǔ)乘客不為空*/ tag=1。 printf(\n\t請(qǐng)輸入您的姓名:)。Replp1[Flight_No]Name)。 /*候補(bǔ)乘客的座位*/ Replp1[Flight_No]Amount=Ticket_Count。 scanf(%s,amp。 printf(\n\t請(qǐng)輸入您的ID信息:)。Replp1[Flight_No]IDinfor)。139。amp。339。 getch()。 } printf(\n\t沒有剩余座位!\n)。 }/*進(jìn)入候補(bǔ)名單 */ }/*票數(shù)滿足*/ }/*航線存在*/ else p
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1