文件名称:park
介绍说明--下载内容均来自于网络,请自行研究使用
这是学完《数据结构与算法》后做的课程设计的题目——停车场管理,主要用到了栈和队列的操作。问题描述如下:
设停车场内只有一个可停放n辆汽车的狭长通道,且有南北两大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在它之后开入的车辆必须先退出车场为它让路,待该辆车开出大门外,其它车辆再按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间长短交纳费用。试为停车场编制按上述要求进行管理的模拟程序。-This is End of study "data structures and algorithms," to do after the topic of curriculum design- the car park management, the main use of the stack and queue operations. Problem described as follows:
There is only one car park located inside the vehicles can be parked n the long and narrow channel, and has north and south gate for car access. Car in a car park by vehicle arrival time of the order, if the vehicle has been parked over n inside cars, it was only in the car waiting outside the pavement, once a car drive away, while waiting on the sidewalk at the first a car can be entered when the car park a car to leave when it opened after the entry of vehicles must exit yard to make way for it to be out of the vehicles outside the gate, other vehicles and then the original order entered yard, each car parked in the car when it left the car park must stay the length of time it costs to pay. Test preparation for the car park managed by the above-mentioned request of the simulation p
设停车场内只有一个可停放n辆汽车的狭长通道,且有南北两大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在它之后开入的车辆必须先退出车场为它让路,待该辆车开出大门外,其它车辆再按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间长短交纳费用。试为停车场编制按上述要求进行管理的模拟程序。-This is End of study "data structures and algorithms," to do after the topic of curriculum design- the car park management, the main use of the stack and queue operations. Problem described as follows:
There is only one car park located inside the vehicles can be parked n the long and narrow channel, and has north and south gate for car access. Car in a car park by vehicle arrival time of the order, if the vehicle has been parked over n inside cars, it was only in the car waiting outside the pavement, once a car drive away, while waiting on the sidewalk at the first a car can be entered when the car park a car to leave when it opened after the entry of vehicles must exit yard to make way for it to be out of the vehicles outside the gate, other vehicles and then the original order entered yard, each car parked in the car when it left the car park must stay the length of time it costs to pay. Test preparation for the car park managed by the above-mentioned request of the simulation p
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Main.cpp
Park.cpp
Park.h
Park.cpp
Park.h