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

正文內(nèi)容

c課程設(shè)計報告--電影院自動售票機(編輯修改稿)

2025-04-19 00:22 本頁面
 

【文章內(nèi)容簡介】 t_______________________________________________________________________________endl。 cout日期\t時間\t場次\t電影名稱\t票價\t折扣\t余票endlendl。 coutposgetYear()posgetMonth()posgetDay()\t。 coutposgetHour():posgetMinute()\t。 coutposgetNum()\tposgetMovieName()\t\t。 coutposgetPrice()\tposgetDiscount()\tposgetRest()。 if(r=0) cout\a(已播放!) endl。 else coutendl。 cout\t\t\t\t該影片當前預(yù)訂情況\n。 for(int i=0。i10。i++) { for(int j=0。j10。j++) { if(posgetMap(i,j)==0) cout[空位] 。 else cout[有人] 。 } coutendl。 } ok=1。 } } if(!ok) cout對不起,您查找的電影還未上映或者已經(jīng)下映endl。 } else if(choice==2) { int date[3]。 int temp[3]。 char ch。 cout請輸入要查找的日期(年月日)endl。 cindate[0]chdate[1]chdate[2]。 for(pos=()。pos!=()。pos++) { temp[0]=posgetYear()。 temp[1]=posgetMonth()。 temp[2]=posgetDay()。 if(timecmp(temp,date,3)==0) { int datatime[5]。 datatime[0]=posgetYear()。 datatime[1]=posgetMonth()。 datatime[2]=posgetDay()。 datatime[3]=posgetHour()。 datatime[4]=posgetMinute()。 int r=timecmp(datatime,array,5)。 cout\n 查找結(jié)果如下:endl。 cout_______________________________________________________________________________endl。 cout日期\t時間\t場次\t電影名稱\t票價\t折扣\t余票endlendl。 coutposgetYear()posgetMonth()posgetDay()\t。 coutposgetHour():posgetMinute()\t。 coutposgetNum()\tposgetMovieName()\t\t。 coutposgetPrice()\tposgetDiscount()\tposgetRest()。 if(r=0) cout\a(已播放?。?endl。 else coutendl。 cout\t\t\t\t該影片當前預(yù)訂情況\n。 for(int i=0。i10。i++) { for(int j=0。j10。j++) { if(posgetMap(i,j)==0) cout[空位] 。 else cout[有人] 。 } coutendl。 } ok=1。 } } if(!ok) cout對不起,您所查找的當天沒有影訊endl。 } } 管理員——刪除//——————————————刪除——————————————void Manager::del(){ system(cls)。 cout\n\n\n\t\t\t\t《刪除模塊》\n\n\nendl。 char na[20]。 cout\n請輸入需要刪除的影片名:。 cinna。 pos=()。 int ok=0。 for(pos=()。pos!=()。pos++) { if(strcmp(posgetMovieName(),na)==0) { (pos)。 coutendl\t\t\t\t刪除成功!\n。 ok=1。 } } if(!ok) { cout\n\a\t\t\t\t未找到結(jié)果,刪除失敗!\nendl。 system(pause)。//任意鍵繼續(xù) return。 }} 管理員——數(shù)據(jù)存入文本//——————————————存儲——————————————void Manager::save(){ ofstream oFile(,ios::out|ios::app)。 if(!oFile) { coutCan not open the file!endl。 return 。 } for(int i=0。i()。i++) ((char *) amp。P[i],sizeof(Ticket))。 ()。 ()。}顧客功能選擇//——————————————選擇——————————————void Menu::customer(Interface cfy,char IDName[]){ system(cls)。 ()。 Customer ct。 int choice2。 do{ cinchoice2。 switch (choice2) { case 1: (IDName)。 break。 case 2: (IDName)。 break。 case 3: default: system(pause)。 system(cls)。 ()。 return 。 } getchar()。 getchar()。 system(cls)。 ()。 } while(1)。}1顧客——訂票//——————————————訂票——————————————void Customer::book(char IDName[]){ system(cls)。 cout\n\n\n\t\t\t\t《訂票模塊》\n\n\nendl。 ifstream iFile1(IDName,ios::in)。 if(!iFile1) { cout賬戶不存在endl。 return 。 } char s1[7]。 ((char *) amp。s1,sizeof(s1))。 User a。 ((char *)amp。a,sizeof(User))。 while(!()) { (a)。 ((char *)amp。a,sizeof(User))。 } ()。 ifstream iFile(,ios::in)。 if(!iFile) { cout電影還未錄入,您不能訂票,請等管理員錄入電影后再來endl。 return 。 } Ticket s。 ((char *)amp。s,sizeof(Ticket))。 while(!()) { (s)。 ((char *)amp。s,sizeof(Ticket))。 } ()。 cout 可預(yù)訂的電影信息如下:endl。 cout_______________________________________________________________________________endl。 cout日期\t時間\t場次\t電影名稱\t票價\t折扣\t余票endlendl。 time_t t。 struct tm *tim。 t=time(NULL)。//獲取當前系統(tǒng)時間 tim=localtime(amp。t)。 int array[5]={timtm_year+1900,timtm_mon+1,timtm_mday,timtm_hour,timtm_min}。 pos=()。 int ok=0。 int flag=0。 for(pos=()。pos!=()。pos++) { int datatime[5]。 datatime[0]=posgetYear()。 datatime[1]=posgetMonth()。 datatime[2]=posgetDay()。 datatime[3]=posgetHour()。 datatime[4]=posgetMinute()。 int r=timecmp(datatime,array,5)。 if(r0) { coutposgetYear()posgetMonth()posgetDay()\t。 coutposgetHour():posgetMinute()\t。 coutposgetNum()\tposgetMovieName()\t\t。 coutposgetPrice()\tposgetDiscount()\tposgetRest()endl。 ok=1。 } } if(!ok) { cout對不起,當前無影片可預(yù)定!endl。 return 。 } char na[20]。 char tt。 int mm,dd,hh,ff。 int n。 User info。 cout\n請輸入您要預(yù)定的影片名以及時間(0121 15:30):。 cinna。 cinmmttddhhttff。 while(1) { for(pos=()。pos!=()。pos++) { if(strcmp(posgetMovieName(),na)==0) { if(posgetDay()==ddamp。amp。posgetMonth()==mmamp。amp。posgetHour()==hhamp。amp。posgetMinute()==ff) { cout當前情況:endl。 for(int i=0。i10。i++)
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1