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

正文內(nèi)容

立體化停車場設(shè)計書(留存版)

2024-09-10 21:28上一頁面

下一頁面
  

【正文】 內(nèi)!endl。 Time t1。 ( amp。s2)==0)) { cout★★★★★★★★南北停車場均有車位★★★★★★★★endl。 s2)==1)) { cout★★★★★★★★北入口已滿,車輛進入南入口endl。}void LookNow(Stack *park, Stack *temp,SqStack *parking1,SqStack *parking2,SqStack *temt,Queue *shortcut,Car *c){ QueueNode *p。temt1, *c)。 (amp。 Car w。 coutendl。 break。}Car。}int Queue::EmptyQueue(Queue *Q){ if (front==rear) { cout隊列為空endl。 if (rearnext == NULL) { cout車輛入隊失敗endl。 free(t)。q,c1)。} 王卓君測試獲取系統(tǒng)時間功能測試: void main(){ Time t。 cine。w5。n++,x=x+1111) { carid[n].data=x。 cout價格測試:endl。s1)。s3)。針對進車功能,我們選擇“先地上后地下”的停放順序,對于地上的??坎糠?,車主可自由選擇南北停車場任意一個停車,當南/北停車場有一個停滿后,系統(tǒng)會自動將到來的車輛停入其他停車場中,并顯示相關(guān)信息提示車主。Time類是個簡單的類,主要是獲取電腦的系統(tǒng)時間并可以實現(xiàn)顯示;Guest類則包括了基本的定位和收費函數(shù),以及新增會員的存儲查詢和打折函數(shù),其中使用了靜態(tài)鏈表的數(shù)據(jù)結(jié)構(gòu)進行查找定位。同時此次實驗也讓我深刻體會到團隊合作的重要性。} int getday() {return 。//棧類SqStack的定義class SqStack{ public: Car data[SIZE]。}//判定s是否為空棧int SqStack::sFullStack(SqStack *s){ int n。 } } //若棧不空,則刪除棧頂元素,并用e返回其值;否則返回ERROR//棧類Stack的定義class Stack{ public: Car elem[STACKSIZE]。}int Stack::Push(Stack *S, Car c){ if (FullStack(S)) return (FALSE)。}QueueNode。 return (TRUE)。 }}int Queue::DeleteQueue(Queue *Q,Car *c){ //刪除隊列元素 QueueNode *t。}int Queue::InitQueue(){ //構(gòu)造一個空隊列 front = (QueueNode *)malloc(sizeof(QueueNode))。}//若棧非空,則返回s的棧頂元素;否則返回ERRORvoid Stack::InitStack(Stack *s){ top=0。//棧Stack的實現(xiàn)Stack::Stack(){}//析構(gòu)函數(shù)int Stack::EmptyStack(Stack *S){ if (base==top) return (TRUE)。 }} //插入c為新的棧頂元素int SqStack::sPop(SqStack *S,Car *c){ if(base==top) return FALSE。//棧SqStack的實現(xiàn)SqStack::SqStack(){}//析構(gòu)函數(shù)void SqStack::sInitStack(){ top=0。 char licence[LICENCESIZE]。public: Time() { GetLocalTime(amp。各個類中都將構(gòu)造空棧、判斷棧滿、判斷??铡⑷霔?、出棧等基本棧函數(shù)進行封裝。在完成個人分工的時候,發(fā)現(xiàn)課本知識的重要,萬變不離其宗,有些問題想不通最終在課本上找到答案,在應(yīng)用的時候發(fā)現(xiàn)自己的不足,這次課程設(shè)計不同于平時練習,平時練習都是小程序雖然知道模塊化編程的好處但沒有真正的去實踐,所以這次實驗讓我體會很深。c)。 Stack s3。 system(pause)。 cout請輸入車牌號:endl。 Guest guest。 } for(int y=5。 } for(int y=5。 (amp。 ()。 } else { t = frontnext。 front=rear。 int DeleteQueue(Queue *Q,Car *c)。}5 測試與調(diào)試 個人測試(按組員分小節(jié)) 曹奕測試include include include includeiostreaminclude iomanipinclude include include define STACKSIZE 3 //設(shè)置地下停車場容量define LICENCESIZE 10//設(shè)置車牌號static int count=1。s1,amp。 cout **** ◇ **** endl。 cout~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^endl。 } while (!(amp。 } while (!(amp。 getchar()。 } } else if(((amp。 } else { if(((amp。s1)==1)amp。 base=0。 return (FALSE)。 Stack()。 return (TRUE)。 int SGetTop(SqStack *s,Car c)。cout★★★★★★★★地上停車場出車請輸入★1,地下停車場出車請輸入★2☆☆☆。 price=()。 cout★★★★★★★★請輸入車牌號:。c)。temt1, c)。temt1, amp。temt1, c)。 Time t2。 for(int n=0,x=1111。 case 3: price=price。 //計算打折價格函數(shù)}。class Guest:public Time //客戶類,繼承Time類{public: Time t1,t2。} void save() { month=getmonth()。 //static int carid=0。 //輸出時間函數(shù) int getmonth() {return 。 cout車輛刪除成功endl。 return (FALSE)。 return (TRUE)。4 方案實現(xiàn) 開發(fā)環(huán)境與工具開發(fā)環(huán)境:VisualC++ 個人設(shè)計實現(xiàn)(按組員分小節(jié)) 曹奕設(shè)計實現(xiàn)隊列類的實現(xiàn):typedef struct QueueNode //隊列結(jié)構(gòu) { Car data。s2,amp。 cout **** ◇ **** endl。 coutendl。2 需求分析 課題調(diào)研 為了完成本次課程設(shè)計任務(wù),我們對校園周邊的停車場運作狀況進行了一系列的前期調(diào)研,包括停車場的管理系統(tǒng)的運行原理,收費標準等等,為本次課程設(shè)計任務(wù)的完成打下了良好的基礎(chǔ)。地面入口處各有一個單車道的等候通道,并允許等候的車輛因急事從等候通道直接開走。 函數(shù)原型設(shè)計int main(){ system(color E1)。s3)。s2, amp。temt1, amp。 int EnterQueue(Queue *Q, Car c)。 }}int Queue::DestroyQueue(Queue *Q){ //銷毀一個隊列 while (front){ rear=frontnext。 if (EmptyQueue( Q)) { cout要查找車輛不存在!endl。 int day。 second=getsecond()。LocalTime)。 int cur。i++,m++) { carid[m].cur=i。}//LocateElemfloat Guest::fee(Time t1,Time t2) //計算普通價格{ if(()!=()) price=(()())*3000。 else if(carfre[v1]=50) price=price*。 } cout請輸入要查詢的值:。 if(!(a==1)) { int i = 0。 cinx。s1, c)。 if(x==1) { price=(,)。 } printf(\n)。c)。 } if (!( Q)) { (amp。class SqStack{ public: Car data[STACKSIZE]。 return (TRUE)。 return (TRUE)。}//析構(gòu)函數(shù)int Stack::EmptyStack(Stack *S){ if (base==top) { cout地下停車場現(xiàn)無車,棧為空!endl。 cout車輛已出棧,離開地下停車場,歡迎下次光臨!endl。 coutendl。((amp。q)。amp。temt1,* c)。 (amp。 } printf(\n)。 (amp。s1,amp。s2, amp。 Queue(){cout構(gòu)造函數(shù)endl。 if (front == NULL) { return (FALSE)。 cout車輛入隊成功countendl。 return 1。 (amp。 SLinkList carid。 SLinkList carid。 v=(carid,amp。y100。 cout應(yīng)收費pri元endl。 (amp。 printf(請輸入車輛車牌號:)。此外,我們還設(shè)計了計費功能,利用windows系統(tǒng)自帶函數(shù)獲取時間,免去了人工手動輸入時間的繁瑣步驟,同時,針對不同車型,是否享受會員優(yōu)惠等差異制定了不同的收費標準,使停車場的運行更為規(guī)范化,合理化。這次的設(shè)計本打算用C語言來編寫,但由于對C掌握的不好,在調(diào)試的時候遇到了很多問題,后來只得改用C++,這里也要感謝隊友的理解,以后我也會盡快的掌握C語言,讓它更好地為我的思想服務(wù)。 using namespace std。 day=getday()。 int sEmpty(SqStack *s)。 else c=data[top1]。 int EmptyStack(Stack *s)。 else { (*c) = elem[top]。 int EmptyQueue(Queue*Q)。}int Queue::EnterQueue(Queue*Q, Car c){ rearnext = (QueueNode *)malloc(sizeof(QueueNode))。 else { rear = rearnext。 int QueueLength()。 return (TRUE)。 int GetTop(Stack *s,Car c)。 return (TRUE)。 int sGetTop(Car c)。 minuet=getminute()。 int month。例如:頭文件的使用,變量和數(shù)組的范圍問題,定義變量時出現(xiàn)的問題等等。在整個設(shè)計和完成的過程中,每位組員都十分認真對待自己負責的部分,時刻保持與其他組員進行交流,就完成課程設(shè)計任務(wù)中出現(xiàn)的問題和瑕疵進行改正和優(yōu)化。 (amp。 cout成功入棧車輛車牌號為:endl。 cout歡迎進入停車場棧測試~ 請選擇停車地點 地上停車場:1;地下停車場:2;endl。 } for(int w=0。 (amp。n5,x=5555。n5,x=5555。c)。}int main(){ Queue q。
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1