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

正文內(nèi)容

汽車租借公司的管理系統(tǒng)-數(shù)據(jù)結(jié)構(gòu)課程設(shè)計報告(專業(yè)版)

2025-09-03 01:48上一頁面

下一頁面
  

【正文】 break。 cini。 cinrentkm_cost。 cout100公里以外的租用費(fèi)用:rentkm_costendl。 if(pcar_runned 100) AllCost =AllCost + car_cost + repair_cost*prepaired_time + oil_cost*pcar_runned + rent_cost*100 + rentkm_cost*(pcar_runned 100)。 research(available,id)。 break。 add_data(repairing)。 add_data(repairing)。 p = pnext。 add_data(repairing)。 pnextrepaired_time = RepairedTime。 p = pnext。p1ine)。 p1 = (struct cars *)malloc(LEN)。 //根據(jù)行駛過的路程進(jìn)行排序 rank_Distance(available)。 available = NULL。j++) { if (sc[j].return_timesc[j+1].return_time) { t = sc[j]。}//根據(jù)預(yù)期返回時間排序struct cars *rank_Time(struct cars *carTime){ p = carTime。i++) { for(j=0。 p = pnext。oil_cost,amp。//汽車狀態(tài)0可以租借,1已借出,2修理中 float car_runned。:void RentCar(struct cars *available,struct cars *rented, struct cars *repairing)。 (float)。(3)基本要求① 用三個鏈表組織三種狀態(tài)的汽車。(4) 實(shí)現(xiàn)提示主要集中在鏈表的基本操作上。:void add_data(struct cars *carData)。:void ReasearchCar(struct cars *available,struct cars *rented,struct cars *repairing)。//next指針}。 //以寫的模式打開文件 fprintf(fp2,%.2f %.2f %.2f %.2f %.2f %.2f,car_cost,repair_cost,oil_cost,rent_cost,rentkm_cost)。 int i = 1,j。 } } } p = carDistance。 sc[i].license_number = plicense_number。 while (p!=NULL) { i++。p1car_runned,amp。 while(!feof(fp1)) { n2 = n2 + 1。 return(rented)。 } else n3。 gnext = NULL。 cout編號\t汽車狀態(tài)\t行駛路程\t預(yù)期歸還時間\t借出天數(shù)\t收益endl。 cout請選擇所租汽車的天數(shù)!endl。 printThreeOfCars(rented)。 cout\n已歸還!endl。 cout\n已送去修理!endl。}//汽車查詢void research(struct cars *ThreeOfCar, int id){ int i = 0。 cout租借出去的汽車:endl。 coutGetMoney\tAllCost\tGetFreeendl。 cout1修改配置信息\t2取消endl。 repairing = create_repairing()。 case 3: ReturnCar(available,rented,repairing)。 120 注:含義依次為:每輛車的成本、每次修理的費(fèi)用、每公里的油費(fèi)、100km以內(nèi)的租費(fèi)、100km以外的租費(fèi)。 case 6: SetInformation()。 cout\t\t9計算收益\t0退出endl。 cout設(shè)置每公里的油費(fèi):endl。 Calculation(repairing)。 ReadDataIni()。 if(i == 1) { cout序號為\t狀態(tài)為\t已行駛的路程\t預(yù)期歸還時間\t借出的次數(shù)\t收益\n。 do { if(score == plicense_number) { insertThreeOfCars(available,plicense_number,0,pcar_runned,0,prepaired_time + 1,pine)。 cout要修理的汽車的信息endl。 cout要?dú)w還的車的信息endl。 save_data(available)。 rep = calculateCars(repairing)。 } pnext=(struct cars *)malloc(LEN)。 while(p != NULL) { coutplicense_number\tpstutes\tpcar_runned\tpreturn_time\tprepaired_time\tpineendl。p1license_number,amp。p1repaired_time,amp。 p2 = p1。 preturn_time = sc[i].return_time。 p = pnext。 pine = sc[i].ine。 sc[i].repaired_time = prepaired_time。 p = pnext。struct cars *rank_Distance(struct cars *carDistance)。三、軟件結(jié)構(gòu)圖及流程圖軟件結(jié)構(gòu)圖即函數(shù)調(diào)用圖(圖中用五號宋體)如下圖添加新車AddNewCar()創(chuàng)建3個鏈表主函數(shù)出租汽車RentCar()void RentCar歸還收費(fèi)ReutrnCar()修理汽車RepairCar()修理完畢BackCar()操作選擇配置信息SetInformation()汽車查詢ReasearchCar()打印全部PrintAllCar()計算收益CalculateProfit()退出開始建立三張鏈表(可借汽車、已借汽車、修理汽車)主菜單(選擇操作)添加新車操作1租借汽車操作2歸還收費(fèi)操作3修理汽車操作4操作5修理完畢操作6配置信息操作7汽車查詢打印全部操作8
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1