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

正文內(nèi)容

c課程設計_復數(shù)類的設計_課程設計論文-在線瀏覽

2025-05-07 05:40本頁面
  

【正文】 。 在調(diào)試 程序 的過程中 , 讓 我感覺到不管做什么事情,我們都應該有耐心,不能知難而退,如果老是半途而廢的話,我們將一事無成,當然在調(diào)試過程中使我的讀程序能力,糾錯能力都有了提高,我將繼續(xù)努力,爭取會有更大的進步! ★附錄(源程序代碼)★ 內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 15 include include include static int num=0。 char start[10]。 //定義航班屬性 int timehour。 int price。 public : void hangban_output()//輸出航班信息 { couthangban。 } void end_output()//輸出終點站 { 內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 16 coutend。 } int timeminiute_output()//輸出分 { return(timeminiute)。 } int leftseat_output()//輸出剩余票數(shù) { return(leftseat)。 i=strcmp(p,start)。 } int zhongdian_return(char *p)//找出符合條件的終點站 { 內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 17 int i。 return(i)。 i=strcmp(p,hangban)。 } void hangban_input()//錄入航班 { cinhangban。 } void end_input()//錄入終點站 { cinend。 cintimehour。 cintimeminiute。 } void leftseat_input()//錄入剩余座位數(shù) { cinleftseat。 } void tui()//退票后剩余票數(shù)自動加一 { leftseat=leftseat+1。 flight_system *hangkong=new flight_system[15]。 void foundation_2()。 //聲明基礎功能模塊 void foundation_4()。 while(1) { struct tm *local。 time_t t。 local=localtime(amp。 strftime(s1,128,%Y%m%d %H:%M ,local)。 cout endl。 cout endl。 int n。 while(!(n == 1 || n == 2 || n == 3 || n == 4 || n == 5||n == 0)) { cout 請輸入正確編號( 0~5): 。 } switch(n) {case 1 :{foundation_1()。break。}。 //功能選擇模塊 case 3 :{foundation_3()。break。}。 內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 21 case 5 :{foundation_5()。break。}。} } } /*********************************************** 功能模塊一********************************************/ void foundation_1() {cout歡迎進入信息管理系統(tǒng) endl。 int miyue=0。 //管理員控制權(quán)限 cinmiyue。} if(miyue==mima) { coutendl密碼正確! endlendl請輸入操作編號 ,添加請按 1,刪除請按 2,退出請按 339。 int n。 while(!(n==1||n==2||n==3)) {cout 請輸入正確編號( 1~3): 。} switch(n) 內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 22 { case 3:{return 。break。 hangkong[num].hangban_input()。 hangkong[num].start_input()。 hangkong[num].end_input()。 hangkong[num].timehour_input()。 //航班信息錄入 cout請輸入票價: 。 cout請輸入座位數(shù): 。 cout信息錄 入成功! endl。 cout繼續(xù)請按 1,退出請按 239。 int x。 while(!(x==1||x==2)) {cout 請輸入正確編號( 1~2): 。} 內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 23 //實現(xiàn)循環(huán)操作 switch(x) {case 1: foundation_1()。//遞歸調(diào)用實現(xiàn)循環(huán) case 2: return 。}}。 case 2: {cout請輸入要刪除的航班號! 。 int s。 int t=0,y。tnum。 if(y==0) {cout確認刪除 1,退出請按 2endl。 while(!(s!=1||s!=2)) {cout 請輸入正確編號( 1~2): endl。 } //實現(xiàn)循環(huán)操作 switch(s) {case 1:hangkong[t]=hangkong[t1]。 cout刪除成功! 。 //遞歸調(diào)用實內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 24 現(xiàn)循環(huán) case 2: return 。 } } if(y!=0) {coutendl沒有此航班信息,不能刪除! endl。 int s。 while(!(s!=1||s!=2)) { cout 請輸入正確編號( 1~2): 。 } //實現(xiàn)循環(huán)操作 switch(s) { case 1: foundation_1()。//遞歸調(diào)用實現(xiàn)循環(huán) case 2: return 。 } } coutendl繼續(xù)請按 1,退出請按 239。 內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 25 cins。 cin s。break。break。break。} /***************************************************************************************************/ } /******************************************** 功能模塊二***********************************************/ void foundation_2() 內(nèi)蒙古科技大學 信息工程學院 通信工程 C++課程設計 26 { coutendl****************************** 歡迎進入信息瀏覽系統(tǒng)***************************endl。 char a。 coutendl按任意字母退出! 。 return 。} for(x=0。x++) {coutendlendl航班號 起飛時間 起點站 終點站 經(jīng)濟艙票價 剩余票數(shù) endl。 hangkong[x].hangban_output()。 couthangkong[x].timehour_output()。 couthangkong[x].timeminiute_output()。cout 。 cout 。cout 。cout 。 }
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1