文件名称:stackANDqueue
介绍说明--下载内容均来自于网络,请自行研究使用
1. 用栈模拟停车场,队列模拟便道。停车场满的时候在便道排队,一旦有车开走,排在第一位的就进入停车场。
2. 当有车要开走的时候在它后面进入停车场的车先依次开出,待该车缴费离开后再依次回到停车场。
3. 离开停车场时应按时间缴纳费用,排队车辆进入停车场时也应该缴纳相应的排队费用。
4. 车辆到达时输出停车位置,离开时输出停留时间和应缴纳费用。
-1. With a stack simulation parking lot, queue simulation of pavement. Parking in the sidewalk when the full line up, once the car drove away, ranked first in the to enter the parking lot. 2. When a car to go to open it back into the car when the car first turn out, then turn out to be pay back to the car parking. 3. To leave the car park fees should be paid time, queuing of vehicles entering the car park should also line up to pay the appropriate fee. 4. Vehicle parking spaces to reach the output, leaving the output residence time and costs to be paid.
2. 当有车要开走的时候在它后面进入停车场的车先依次开出,待该车缴费离开后再依次回到停车场。
3. 离开停车场时应按时间缴纳费用,排队车辆进入停车场时也应该缴纳相应的排队费用。
4. 车辆到达时输出停车位置,离开时输出停留时间和应缴纳费用。
-1. With a stack simulation parking lot, queue simulation of pavement. Parking in the sidewalk when the full line up, once the car drove away, ranked first in the to enter the parking lot. 2. When a car to go to open it back into the car when the car first turn out, then turn out to be pay back to the car parking. 3. To leave the car park fees should be paid time, queuing of vehicles entering the car park should also line up to pay the appropriate fee. 4. Vehicle parking spaces to reach the output, leaving the output residence time and costs to be paid.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C语言栈和队列应用.cpp