文件名称:tingchechangmoni
介绍说明--下载内容均来自于网络,请自行研究使用
设停车场是一个可停放n辆汽车的狭长通道,且只有一个大门可供汽车进出,汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆车停放在车场的最北端),若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在他之后进入的车辆必须先退出车场为它让路,待该车开出大门外,其他车辆再按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间交纳费用。试为停车场编制按上述要求进行管理的模拟程序。有源码,有实验报告!-Parking lots is a parked cars narrow channel n, and only one door and out for cars, cars in the car park by vehicle arrival time of the order, arranged in order from north to south (the door in the southernmost tip of the first arrival the first car parked in the yard of the north), if the car has been parked inside n cars, the car was only waiting on the sidewalk outside, when a car drove away, then came in the first one on the sidewalk you can open into the car when a car parking lot to leave, after he entered the vehicle must exit parking lots to make way for it, until the car out of the gate, then the original sequence into the other vehicle parking lots, each car parked in the yard when it left the parking lot must be paid by the time it costs to stay. Test preparation for the parking requirements for the management of the above simulation program.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
设计题实验报告.doc
h.cpp
h.cpp