文件名称:carparking
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 271kb
- 下载次数:
- 0次
- 提 供 者:
- c***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设停车场是一个可停放M辆汽车的狭长通道,且只有—个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列t大门在最南端,最先到达的第一辆车停放在车场的最北端),若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等侯,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在它之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间长短交纳费用。试为停车场编制按上述要求进行管理的程序。-parking lots is a parking M vehicles crossing the narrow and only-000 cars out of the door. Within car in the parking lot by the arrival of the vehicles in chronological order, with t turn north to south in the southern door, the first arrived in a car parked in the northern-most yards), and if the yards are full of parked cars n, Later, the car was only at the door waiting on the sidewalk, once a car and drove away, the sidewalk will be placed on the first one into the car can; When the car park within a certain vehicles to leave, after it entered the vehicle must first withdraw from the garage to make way for it, when the cars out our door, other vehicles then entered the garage original order, each parking garage in the car when it left the car park as it must stay the length of time to
(系统自动生成,下载前可以参看下载内容)
下载文件列表
停车场
......\123.cpp
......\123.dsp
......\123.dsw
......\123.ncb
......\123.opt
......\123.plg
......\Debug
......\park.h
......\q.h
......\st.h
......\停车场.doc
......\123.cpp
......\123.dsp
......\123.dsw
......\123.ncb
......\123.opt
......\123.plg
......\Debug
......\park.h
......\q.h
......\st.h
......\停车场.doc