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

正文內(nèi)容

c課程設(shè)計——航空售票管理系統(tǒng)-閱讀頁

2025-06-06 19:01本頁面
  

【正文】 航 班 號 丨 起 始 站 丨 終 點 站 丨起飛時間丨票價丨余 票丨 ——————————————————————————————————— ———— \n。 i m_sum。 cout 按任意鍵返回主菜單! 。 } //查詢功能 int Traffic_system::Search(int invoke) { int tab。 cout *************************************************************************\n*** 1—— 按航班號查詢 2—— 按站點查詢 0—— 返回 ***\n*************************************************************************\n 請選擇( 0~2): endl。 while(!(tab == 1 || tab == 2 || tab == 0)) { cout 請輸入正確選擇( 0~2): 。 } char str[2][18], ta。 else if (tab == 1) { cout 請輸入航班號: 。 ta = 39。 } else { cout 請輸入出發(fā)站: 。 cout 請輸入終點站: 。 ta = 39。 } for (int i = 0。 i++) { if (v_array[i].If_match(str, ta)) { cout 您要查詢的結(jié)果如下: \n ——————————————————————————————————————— \n 丨 航 班 號 丨 起 始 站 丨 終 點 站 丨起飛時間丨票價丨余 票丨 ————————————————————— —————————————————— endl。 if (invoke == 0) { cout 按任意鍵返回主菜單! 。 內(nèi)蒙古科技大學(xué) 課程 設(shè)計 說明書 24 cin c。 } } cout 抱歉!您查詢的航班不存在! endl。 } //訂票和退票 void Traffic_system::BookRefund() { while (1) { cout ************************** 歡迎進(jìn)入機票服務(wù)系統(tǒng)**********************\n\n —————————————————————————————————— \n 請選擇 :\t\t\t\t\t\t\t\t ***\n***\t 1—— 訂票 \t2—— 退票 \t0—— 返回主菜單 ***\n ————————————————————————————————— — endl。 cin tab。 cin tab。 switch(tab) { case 1: 內(nèi)蒙古科技大學(xué) 課程 設(shè)計 說明書 25 { cout 請先查找該航班: endl。 i = Search(1)。amp。 do { cin ta。Y39。y39。N39。n39。 if(ta == 39。 || ta == 39。) { Save_file()。 } } break。 Read_file()。 cin str[0]。 for (。 i++) { if (v_array[i].If_takeoff()) continue。139。 cout 《確認(rèn)退票 \\Y》 《取消退票 \\N》 \n 請選擇: 。 }while(!(ta == 39。 || ta == 39。 || ta == 39。 || ta == 39。 ))。Y39。y39。 cout 退票成功! endl。 } } if (i == m_sum) { cout 不存在該航班或該航班已起飛!不能退票。 break。 } } } 文件 —— class/ class Flight { public: Flight() { m_fnum[0] = 39。 } bool SetInfo()。 operator(istreamamp。 cp)。 operator(ostreamamp。 cp)。//輸出航班信息 內(nèi)蒙古科技大學(xué) 課程 設(shè)計 說明書 27 bool Book()。//退票 bool If_takeoff()。//判斷是否刪除 bool If_match(char (*p)[18], char ta)。//航班號 int m_ftime[2]。//起始站 char m_fdestination[18]。//票價 int m_fseat。 文件 —— class/ include iostream include string include iomanip include ctime// in C using namespace std。 operator(istreamamp。 cp) { in [0] [1] 。 } ostreamamp。 out, Flightamp。 return out。 struct tm *fmt。now)。now)。 } //判斷是否起飛 bool Flight::If_takeoff() { return (m_ftime[0] * 60 + m_ftime[1] = get_systemtime())。39。139。 else return (!strcmp(m_fstar, p[0]) amp。 !strcmp(m_fdestination, p[1]))。 cin m_fnum。+39。 cout 起始站: 。 cout 終點站: 。 cout 請輸入起飛時間:( 格式: 03:05) 。 cout 票價: 。 cout 余票: 。 return true。 } 內(nèi)蒙古科技大學(xué) 課程 設(shè)計 說明書 30 else { cout 丨 setiosflags(ios::left) setw(10) m_fnum 丨 setw(18) m_fstar 丨 setw(18) m_fdestination 丨 setiosflags(ios::right) setw(2) setfill(39。) m_ftime[0] : setw(2) m_ftime[1] setfill(39。) 丨 setw(4) m_fprice 丨 setw(5) m_fseat 丨 resetiosflags(ios::right) ——————————————————————————————————————— endl。 return false。 cout 請輸入訂購的票數(shù): 。 if (m_fseat count) { cout 余票不足! endl。 } m_fseat = count。 } 內(nèi)蒙古科技大學(xué) 課程 設(shè)計 說明書 31 //退票 void Flight::Refund() { if (If_takeoff()) { cout 該航班已經(jīng)起飛,停止退票! endl。 } int count。 cin count。 } 內(nèi)蒙古科技大學(xué) 課程 設(shè)計 說明書 32 參考文獻(xiàn) [1] Bjarne Stroustrup, THE C++ PROGRAMMING LANGUAGE, Higher Education Press Pearson Education, 2020 [2] [美 ]Walter Savitch 著,周靖譯, C++面向?qū)ο蟪绦蛟O(shè)計 —— 基礎(chǔ)、數(shù)據(jù)結(jié)構(gòu)與編程思想,清華大學(xué)出版 社, 2020 [3] [美 ]Brian Overland 著,董梁等譯, C++語言命令詳解,電子工業(yè)出版社, 2020 [4] [美 ]AI Stevens 著,林瑤等 譯, C++大學(xué)自學(xué)教程,電子工業(yè)出版社, 2020 [5] 刁成嘉主編,面向?qū)ο?C++程序設(shè)計,機械工業(yè)出版社, 2020 [6] 劉瑞新主編,曹建春,沈淑娟,張連堂等編著, Visual C++面向?qū)ο蟪绦蛟O(shè)計程,機械工業(yè)出版社, 2020 [7] 陳文宇,張松梅編著, C++語言教程,電子科技大學(xué)出版社, 2020 [8] 張凱主編,付興宏主審, VC++程序設(shè)計,大連理工大學(xué)出版社, 2020
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1