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

正文內(nèi)容

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

2025-08-22 01:48上一頁面

下一頁面
  

【正文】 cense_number,1,pcar_runned,day,prepaired_time,pine)。 }while(p != NULL)。 cinrun。 break。 cinscore。 break。 cinscore。 } f = p。 } p = pnext。 research(rented,id)。}//計算收益void Calculation(struct cars *ThreeOfCar){ float AllCost = 0,GetMoney = 0,GetFree = 0。 p = pnext。 Calculation(rented)。}//設(shè)置配置信息void SetInformation(){ int i。 cout設(shè)置每次的修理費用:endl。 setDataIni()。 cout\t\t5修理完畢\t6配置信息endl。 switch(i) { case 1: AddNewCar(available,rented,repairing)。 case 5: BackCar(available,rented,repairing)。 case 9: CalculateProfit()。25 / 25。 case 8: PrintAllCar()。 case 4: RepairCar(available,rented,repairing)。 cout請輸入你的選擇=endl。 cout\t\t1添加新車\t2租借汽車endl。 cout設(shè)置100公里以外的租用費用:endl。 if(i == 1) { cout設(shè)置每輛車的的成本:endl。 cout100公里以內(nèi)的租用費用:rent_costendl。 Calculation(available)。 pcar_runned =0) AllCost =AllCost + car_cost + repair_cost*prepaired_time + oil_cost*pcar_runned + rent_cost*pcar_runned。 cout正在維修的車:endl。 cinid。 do { if(id == plicense_number) { i =1。 add_data(repairing)。 printThreeOfCars(repairing)。 add_data(rented)。 printThreeOfCars(available)。 add_data(rented)。 cinscore。 } f = p。 p = f = available。 add_data(rented)。 return 0。 pnextreturn_time = ReturnTime。 } else { cout錯誤deleteThreeOfCar()!endl。 while(p != NULL) { k++。 fclose(fp1)。p1repaired_time,amp。 p1 = p2 = (struct cars *)malloc(LEN)。 p2 = p1。p1license_number,amp。 fclose(fp1)。p1repaired_time,amp。 p1 = p2 = (struct cars *)malloc(LEN)。 pstutes = sc[i].stutes。jn2i2。 sc[i].car_runned = pcar_runned。 } return(carDistance)。 while(p!=NULL) { i++。in1。 sc[i].license_number = plicense_number。 //以追加寫入的模式打開文件 while(p!=NULL) { fprintf(fp1,%d %d %.2f %d %d %.2f\n,plicense_number,pstutes,pcar_runned,preturn_time,prepaired_time,pine)。 cout設(shè)置成功!endl。repair_cost,amp。FILE *fp1, *fp2。//汽車編號 int stutes。:void Calculation(struct cars *ThreeOfCar)。:void AddNewCar(struct cars *available,struct cars *rented,struct cars *repairing)。:struct cars *rank_Time(struct cars *carTime)。 (int)。公司日常業(yè)務(wù)有添加新車,租借汽車,歸還收費、修理汽車,修理完畢,配置信息,汽車查詢,打印全部信息,計算收益。(2)課程設(shè)計目的應(yīng)用線性數(shù)據(jù)結(jié)構(gòu)存儲信息,并能夠應(yīng)用上面的基本操作實現(xiàn)事務(wù)管理。在rented隊列中的汽車應(yīng)依據(jù)其預(yù)期返回時間進行排序,排在最前的應(yīng)是預(yù)期最早返回的汽車。二、設(shè)計思想問題分析該公司的所有車輛只有以下三種狀態(tài): ●可以租借(available for rent) ●已借(rented) ●修理中(repairing) 、刪除、顯示的最最基本的功能,他們里面又都有多輛車需要統(tǒng)一管理,而這些車輛無疑都是屬性相同的車輛,所以可以建立一個cars結(jié)構(gòu)體,包含他們共同的屬性。 (int)。:struct cars *rank_Distance(struct cars *carDistance)。:struct insertThreeOfCars(struct cars *ThreeOfCar,int LicenseNumber,int Stu,float CarRunned,int ReturnTime,int RepairedTime,float Ico)。:void PrintAllCar()。includeincludeincludevectordefine LEN sizeof(struct cars)struct cars{ int license_number。struct cars *p1,*p2,*available,*rented,*repairing,*p,*g,*f。car_cost,amp。 fclose(fp2)。 fp1 = fopen(,a)。 while(p!=NULL) { i++。 } for(i=0。 i = 1。 p = pnext。 sc[i].stutes = pstutes。i++) { for (int j=0。 plicense_number = sc[i].license_number。}//struct c
點擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1