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

正文內(nèi)容

停車場(chǎng)管理系統(tǒng)數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)-在線瀏覽

2025-05-25 23:02本頁(yè)面
  

【正文】 開(kāi);計(jì)算時(shí)間及其所需費(fèi)用;} 如果選擇E,退出程序;}while(輸入的菜單選項(xiàng)不正確)三 詳細(xì)設(shè)計(jì) 數(shù)據(jù)結(jié)構(gòu)的定義,及其基本操作的實(shí)現(xiàn)typedef struct time{int hour。}Time。float time。typedef struct//車庫(kù)信息{Car *top。int stacksize。typedef struct//臨時(shí)車道{Car2 *top2。int stacksize2。typedef struct QNode//車道信息{Car data。}QNode,*QueuePtr。QueuePtr rear。void main(){SqStack S。InitStack(amp。InitStack2(amp。InitQueue(amp。//初始化while(ch==1){ do { printf(\n\t\t\t\tA車輛到達(dá) \n\t\t\t\tD車輛離開(kāi) \n\t\t\t\tE退出\n\t\t\t\tA/D/E ?\b)。status)。 }while(status!=39。amp。status!=39。amp。status!=39。amp。status!=39。amp。status!=39。amp。status!=39。)。A39。a39。 scanf(%d,amp。 getchar()。 scanf(%d,amp。 getchar()。D39。d39。S,amp。 if(!=) Push2(amp。 else =。 position_s。S2,amp。 Push(amp。 }//while while(!QueueEmpty(Q)amp。!StackFull(S)) { if(!StackFull(S)) {棧不滿的話,臨時(shí)車道上的車進(jìn)棧 }//if }//while time=。 }//if else { 計(jì)算停車時(shí)間; 計(jì)算所需費(fèi)用; }//else printf(\n\t\t\t\tWele to back ! Do you want to continue \n\t\t\t\t1contine/0quit ?\b)。ch)。 }while(!mistime)。//退出程序}//第一個(gè)while}//main 程序的層次結(jié)構(gòu)的函數(shù)調(diào)用關(guān)系圖StackFull()Main()initqueue()Initstack2()DeQueue()initstack()QueueEmpty()EnQueue() 詳細(xì)設(shè)計(jì)根據(jù)老師的要求,在這里我主要分析程序設(shè)計(jì)中停車場(chǎng)管理系統(tǒng)的進(jìn)站模塊:該模塊涉及多個(gè)函數(shù),過(guò)程依次有初始化,選擇進(jìn)站輸入A,車牌號(hào),時(shí)間。該程序流程圖如下: 車進(jìn)站流程圖進(jìn)站 Main()選擇A開(kāi)始繼續(xù)進(jìn)站進(jìn)入臨時(shí)車道臨時(shí)車道車進(jìn)入車站結(jié)束四 程序源代碼include include include define NULL 0define ERROR 0define OK 1define OVERFLOW 1define STACK_INIT_SIZE 2//車庫(kù)容量typedef struct time{int hour。}Time。float time。typedef struct//車庫(kù)信息{Car *top。int stacksize。int InitStack(SqStack *S)//棧的初始化{Sbase=(Car *)malloc(STACK_INIT_SIZE*sizeof(Car))。Stop=Sbase。return OK。elsereturn ERROR。elsereturn ERROR。 else { *(Stop++)=e。 }//else}int Pop(SqStack *S,Car *e)//出棧{if(Stop==Sbase)return ERROR。return OK。else *e=*(Stop1)。}typedef struct//臨時(shí)車道{Car2 *top2。int stacksize2。int InitStack2(SqStack2 *S2){S2base2=(Car2 *)malloc(STACK_INIT_SIZE*sizeof(Car2))。S2top2=S2base2。return OK。*(S2top2++)=e2。}int Pop2(SqStack2 *S2,Car2 *e2){if(S2top2==S2base2)exit(OVERFLOW)。return OK。elsereturn ERROR。struct QNode *next。typedef struct{QueuePtr front。}LinkQueue。if(!(Qfront)) return ERROR。return OK。p=(QueuePtr)malloc(sizeof(QNode))。pdata=e。Qrearnext=p。return OK。elseret
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1