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

正文內(nèi)容

車站票務(wù)管理系統(tǒng)程序設(shè)計(jì)報(bào)告-文庫(kù)吧資料

2024-09-16 10:31本頁(yè)面
  

【正文】 et *p[],int *number) { int i,j。//向文件中寫入新內(nèi)容 outf(p[i]+j)GetNo() (p[i]+j)GetTimeHour():(p[i]+j)GetTimeMinute() (p[i]+j)GetName_b() (p[i]+j)GetName_a() (p[i]+j)Gettime() (p[i]+j)GetLoad() (p[i]+j)GetReminder()39。 coutendl。jnumber[i]。i=count。 cout|***********************************************************************|endl。//修改 //顯示此次的票務(wù)信息 cout******************************當(dāng)前車票信息******************************|endl。 ()。} coutPlease enter the new train:endl。 break。jnumber[i]。flag。icountamp。 cinNo。 char No[20]。 } count++。 coutendl。jnumber[i]。i=count。 cout|***********************************************************************|endl。 } //顯示此次的票務(wù)信息 cout******************************當(dāng)前車票信息******************************|endl。 (p[count]+i1)SetTicket()。i=n。 } else number[count]=n。//為此次增加分配內(nèi)存 if(p[count]==NULL) { coutNo enough memory!\n。 cinn。 } } } //函數(shù)功能 :增加車次 void AddNo(Ticket *p[],int *number) { int n,i,j。 default: cout輸入錯(cuò)誤,請(qǐng)重新輸入 :endlendl。 coutendlendlendl。 case 4: flag=0。 coutendlendlendl。 case 3: flag=0。 case 2: NewNo(p,number)。 } } switch(choice) { case 1: AddNo(p,number)。 } else { flag=0。 //清除 fail狀態(tài) ()。 cout輸入錯(cuò)誤,請(qǐng)重新輸入: endl。 while(1) { cinchoice。 cout ********************** endlendl。 cout ** 3. 退出更新系統(tǒng) ** endl。 cout ** 1. 新增車次信息 ** endl。 } //函數(shù)功能 :更新車次函數(shù) void ChangNo(Ticket *p[],int *number) { int flag=1,choice。\n39。 return。 } //函數(shù)功能 :文件創(chuàng)建函數(shù) void CreatFile(char *s) { ofstream outf(s)。 default: cout輸入錯(cuò)誤,請(qǐng)重新輸入 :endlendl。 cout******************************************************************************endlendl。 cout******************************************************************************endlendl。 { system(cls)。 break。 coutendlendlendl。 break。 coutendlendlendl。 break。i,amp。 coutendlendlendl。 break。 coutendlendlendl。 break。 coutendlendlendl。 } else break。 //清除 fail狀態(tài) ()。 cout非法 選擇,請(qǐng)重新輸入: endl。 while(1) { cinchoice。 cout ********************** endlendlendl。 cout ** 5. 售票退票 ** endl。 cout ** 3. 票 務(wù)查詢 ** endl。 cout ** 1. 修改車次信息 ** endl。 coutendl。 cout 歡迎使用車站票務(wù)管理系統(tǒng) endlendl。//定義指針數(shù)組 coutendlendl。 int number[100]。 int flag=1。//ofstream outf()。//ofstream outf(車票信息 .dat)。 checkpassword()。 cout 請(qǐng)輸入密碼 endlendl。//定義全局變量用來統(tǒng)計(jì)指針數(shù)組的長(zhǎng)度 int main() { coutendlendl。t,int n)//定義添加余票數(shù) { =+n。t,int n)//定義減少余票數(shù) { =。 } }。 } int GetTimeMinute()//獲得分鐘數(shù) { return ()。 } int GetReminder()//獲得余票數(shù) { return reminder。 } int Gettime()//獲得時(shí)間 { return time。 } char *GetName_b()//獲得起始站 { return name_b。,int n)。,int n)。 cout|********|********|********|********|********|********|********|********|endl。 ()。 (().GetHour(),().GetMinute())。 reminder=()。 time=()。 strcpy(name_b,())。 }while(price=0)。 cinprice。 int i=0。//余票必須為正數(shù)并且余票不能大于載定數(shù)量 } cout請(qǐng)輸入車票價(jià)格 :endl。 } } i++。 } else { cout余票數(shù)量必須為正數(shù)!請(qǐng)重新輸入余票數(shù)量: endl。 cout目前載定數(shù)量為: loadendl。 int i=0。//額定售票必 須為正數(shù) } cout請(qǐng)輸入余票數(shù)量 :endl。 } i++。 do{ if(i!=0) { cout額定售票必須為正數(shù)!請(qǐng)重新輸入額定售票: endl。 { cinload。 }while(time0)。 cintime。 int i=0。 cout請(qǐng)輸入行車時(shí)間 :endl。 cout請(qǐng)輸入終點(diǎn)站 :endl。 cout請(qǐng)輸入起點(diǎn)站 :endl。 cinno。 price=Price。 load=Load。 strcpy(name_a,Name_a)。//車票價(jià)格 public: Ticket(char *No,int h,int m,char *Name_b,char *Name_a,int t,int Load,int Reminder,int Price):time_o(h,m) { strcpy(no,No)。//余票數(shù)量 int time。//發(fā)車時(shí)間 int load。//起點(diǎn)站 char name_a[10]。 //定義車次類 class Ticket { private: char no[9]。 minute=m。 } int GetMinute()//獲得分鐘 { return minute。 } else coutsetw(8)hour:setw(2)minute。 }while(hour24||hour0||minute60||minute0)。 cinminute。 cinhour。 do{ if(i!=0) { cout輸入錯(cuò)誤,請(qǐng)重新輸入! endl。 cout請(qǐng) 輸入發(fā)車時(shí)間(分鐘) :endl。 cout請(qǐng)輸入發(fā)車時(shí)間(小時(shí)) :endl。
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1