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

正文內(nèi)容

停車(chē)場(chǎng)管理系統(tǒng)設(shè)計(jì)大作業(yè)(參考版)

2025-08-10 11:45本頁(yè)面
  

【正文】 。}}else{system (cls)。){system (cls)。}}if(a==39。 Showusers(users)。 break。}case 3: { system (cls)。Showcars(cars)。break。cout請(qǐng)輸入:。FourCarIn(cars)。continue。cini。int i。cout5 退出endl。cout3 輸入管理員信息 endl。while(1){cout1 初始停車(chē)場(chǎng)endl。break。break。Y39。break。// SearchCust(cl,licen,cost,pcount)。CarOutMenu(licen,pche,pcolo,pnumber,ptime,cost,note)。cinlicenpchepcolo。cout請(qǐng)輸入您的車(chē)牌號(hào):。float cost。int pnumber,ptime。case 2:{system (cls)。cina。cout退出?(Y:是,N:不)endl。Enterpark(cars)。}if(i==1||i==2){switch(i){case 1:system (cls)。if(i1||i3){cout您的操作非法!!!endl。char a。cout請(qǐng)選擇:。cout2 取車(chē)endl。}//顧客界面void Customer(Car cars[6]){cout**************停車(chē)場(chǎng)****************endl。 coutendl。cout歡迎進(jìn) UserArr[i].name 入停車(chē)場(chǎng)后臺(tái)管理系統(tǒng)endl。}}coutendl。++k。while(j1000000000){j++。cout注冊(cè)成功,系統(tǒng)正在為您跳轉(zhuǎn)到登陸界面endl。cinpassword。cout請(qǐng)輸入您的密碼endl。cinname。cout請(qǐng)輸入您的姓名endl。cinid。}else{cout請(qǐng)輸入要注冊(cè)賬號(hào)endl。if(tip==1){if(k==2){cout很遺憾,系統(tǒng)管理員用戶(hù)總數(shù)達(dá)到上限,無(wú)法注冊(cè),若需注冊(cè),請(qǐng)聯(lián)系管理員endl。int tip=0。coutendl。if(count==2||k==2){cout您今天已累計(jì)輸錯(cuò)count 次。count++。}}if(n){break。!strcmp(UserArr[i].password,password)){n=1。i++){if(!strcmp(UserArr[i].id,id)amp。for(i=0。char password[10]。cinid。//標(biāo)識(shí)是否匹配,若匹配,則退出外循環(huán)cout請(qǐng)輸入您的管理賬號(hào)endl。//遍歷變量或找到用戶(hù)的 IDint k=1。//默認(rèn)用戶(hù) int count=0。coutendl。(8)。(2)。(10)。(10)。j6。coutendl。(8)。 (2)。(10)。(10)。int j。coutcars[j].ptimeendl。coutcars[j].pnumber。coutcars[j].pcolor。coutcars[j].pchexing。coutcars[j].license。j++){if(cars[j].empty==1){(ios::left)。for(j=0。(8)。(8)。 (2)。(10)。(10)。int j。users[qingjia1].empty =empty。strcpy(users[qingjia1].id,id)。cars[pnumber1].empty =empty。cars[pnumber1].pnumber =pnumber。}//記錄一個(gè)停車(chē)位的狀態(tài)void Loadfile(Car cars[6],char license[10],char pchexing[10],char pcolor[2],int pnumber,int ptime,int empty){if(!license)return。 void Loadfile(Car cars[6],char license[10],char pchexing[10],char pcolor[2],int pnumber,int ptime,int empty)。cin。cin。cin。cin。cin。i4。cout請(qǐng)輸入四輛車(chē)的信息:endl。}void FourCarIn(Car cars[6]){//4 車(chē)進(jìn)庫(kù)Car c。void loafile(User users[6],char name[10],char id[10],char password[10], int qingjia,int empty)。cin。cin。cin。cin。i4。cout請(qǐng)輸入四位管理人員的信息:endl。}void FourUserIn(User users[6]){User a。(10)。(10)。(10)。(10)。(10)。cout消費(fèi)endl。cout車(chē)位號(hào)。cout車(chē)的顏色。cout車(chē)型。cout車(chē)牌號(hào)。//輸出(ios::left)。}//輸出 收費(fèi)后 個(gè)人 憑據(jù)void Print(char license[],char pchexing[10],char pcolor[2],int pnumber,int ptime,float amp。 // cout endl。if(n!=1)break。while(!feof(fp)){//read one car informationn = fwrite(amp。} User user。if(fp==NULL){coutcan not open this fileendl。}fclose(fp)。// cout endl。car,sizeof(car),1,fp)。int n。return。}void Load(Car cars[6]){FILE* fp = fopen(,rb)。}j++。 // 如果寫(xiě)成這樣,每次都從 car[0][0]地址開(kāi)始寫(xiě)入,回報(bào)原來(lái)的內(nèi)容覆蓋掉,加深了我對(duì) fwrite()的理解fwrite(amp。// fwrite(amp。strcpy( ,users[j].password)。while(j6){if(users[j].empty ==1){strcpy( ,users[j].name )。}//to fileUser user。if(fp==NULL){coutCan not open this fileendl。}fclose(fp)。car,sizeof(car),1,fp)。cars,sizeof(car),1,fp)。=cars[j].empty 。 =cars[j].pnumber 。int j=0。return。}//逐條添加記錄到 中void Savecars(Car cars[6]){FILE* fp = fopen(,wb)。j++)if(cars[j].empty==1) return false。for(j=1。t) )。}}//得到當(dāng)前時(shí)間void GetDate(char tmp[64]){time_t t = time( 0 )。}if(i==1||i==2) continue。break。break。}switch(i){case 1:cout現(xiàn)有汽車(chē)停車(chē)信息endl。if(i1||i3){cout您的操作非法!!!endl。int i。cout3 直接退出endl。cost,char note[100]){cout1 輸出憑據(jù)endl。pnumber,int amp。strcpy(cars[pnumber1].license, )。cars[pnumber1].ptime=0。j++)。//延時(shí)for(j=0。pnumber+=1。}}if(sign==0)cout車(chē)已找到,請(qǐng)稍等。cout請(qǐng)重新輸入:。ptime=cars[j].ptime。j++){if(strcmp(cars[j].license,license)==0){sign=0。while(sign){for(j=0。}//查找車(chē)位int sign=1。endl。ptime,float amp。 //如果使用 break,則只能跳出單層循環(huán),}}}//取車(chē)void Leavepark(Car cars[6],char license[],char pchexing[10],char pcolor[2],int amp。strcpy(cars[i].license,licen)。cars[i].ptime=5。i++){if(cars[i].empty==1){cars[i].ptime +=5。for(i=0。cinpcolo。cinpche。cinlicen。cinpcolo。cinpche。cinlicen。}//存車(chē)void Enterpark(Car cars[6]){char licen[10],pche[10],pcolo[2]。}//顧客留言void CustomerNote(char note[100]){cout請(qǐng)留言:。(8)。(8)。 (10)。(2)。(10)。cout停車(chē)開(kāi)始時(shí)間endl。cout車(chē)位號(hào)。cout車(chē)型。cout顏色。cout車(chē)牌號(hào)。//游客個(gè)人信息的自我查詢(xún)void EachGuideInfor(Car c){(ios::left)。void CustomerNote(char note[100])。cl,char *license,char *pchexing,char *pcolor,float cost,int pcount)。void GetDate(char tmp[64])。void CreateCustList(CustList *amp。void InitCustList(CustList *amp。cost,char note[100])。pnumber,int amp。cost,char note[100])。pnumber,int amp。cost)。bool IsEmpty(Car cars[6])。void Showcars(Car cars[6])。void FourCarIn(Car Cars[6])。void loafile(User users[6],char name[10],char id[10],char password[10], int qingjia,int empty)。void Load(Car cars[6])。void loa(User users[6])。int UsertestAdd()。//標(biāo)志位,有車(chē)為 1,無(wú)車(chē)為 0}。//留言int qingjia。//編號(hào)char name[10]。//顧客信息鏈表typedef Customer CustList。//顧客留言Customer *next。//本次停車(chē)總時(shí)間float cost。//車(chē)的顏色char date[64]。//車(chē)牌號(hào)char pchexing[10]。//標(biāo)志位,有車(chē)為 1,無(wú)車(chē)為 0}。int ptime。char pcolor[2]。struct Car{char license[10]。我的收獲還是挺多的,在系統(tǒng)開(kāi)發(fā)中,使得我將計(jì)算機(jī)課程所學(xué)知識(shí)與實(shí)際問(wèn)題很好的相聯(lián)接在了一起。同時(shí)我覺(jué)得這一系統(tǒng)也一點(diǎn)可改進(jìn)的方面在于還應(yīng)該增加時(shí)間的判斷功能,即停車(chē)場(chǎng)內(nèi)有可能有車(chē)輛停放時(shí)間超過(guò)一天。汽車(chē)進(jìn)入停車(chē)場(chǎng)的信息、離開(kāi)停車(chē)場(chǎng)的信息以及通道上的信息都可以在程序上一一實(shí)現(xiàn)。}}} 五 系統(tǒng)測(cè)試(1)登陸界面(2)客戶(hù)界面(3)存車(chē)(4)取車(chē)(5)車(chē)管界面 六 總結(jié)這次通過(guò)課程設(shè)計(jì)首先加深啦對(duì)《對(duì) C++程序設(shè)計(jì)》這一課程所學(xué)內(nèi)容進(jìn)一步理解和鞏固,特別是對(duì)順序進(jìn)棧以及鏈?zhǔn)疥?duì)列的結(jié)構(gòu)還有保存程序到文件著幾塊,一次停車(chē)場(chǎng)系統(tǒng)的設(shè)計(jì)開(kāi)發(fā)主要用的就是這幾種,在進(jìn)行系統(tǒng)開(kāi)發(fā)的準(zhǔn)備階段,也就是進(jìn)行需求
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1