Description: 每个教数据结构的老师都至少会要求学生利用学过的结构编写出一些现实模型.学栈和队列的时候,老师要求我们写出利用栈和队列来模拟停车场管理的一个程序.通过停在停车场的时间长短来计算费用,其中队列的可以看作是便道,车满时便停靠在便道上,此时不收取费用.具体要求和实现请看程序.-each data structure of the teachers have at least would require students to use the structure to learn to prepare some reality model. Stack and Queue school when the teacher asked us to write using stack and cohort simulation of a car park management procedures. Through parked in the parking lot the length of time to calculate costs, which Queue the pavement can be seen as vehicles for when they parked on the sidewalk, this time free of charge. the specific requirements and procedures to achieve See. Platform: |
Size: 2173 |
Author:superloafer |
Hits:
Description: 以栈摸拟停车场,以队列摸拟场外的车道,按照从终端读入的输入数据序列进行摸拟管理。每一组输入数据包括三个数据项:汽车到达或离去的信息、汽车牌照号码以及到达或离去的时刻。对每一组输入数据进行操作后的输出信息为:若车辆到达,则输出汽车在停车场的内或便道上的位置,若车辆离去,则输出汽车在停车场内停留的时间和应交纳的引用。-Simulation in order to stack the car park to queue simulation outside lane, in accordance with the read from the terminal input data sequence management simulation. Each group of input data consists of three data items: the vehicles arrive at or leave the information, vehicle license number and arrival or departure time. For each group of input data to operate the output after the message is: if the arrival of the vehicles, then the output of motor vehicles in the parking lot or sidewalk on the location, if the vehicle left, the output of motor vehicles in the parking lot to stay within time and should be paid references. Platform: |
Size: 3072 |
Author:chuyu1987 |
Hits:
Description: 要求程序输出每辆车到达后的停车位置(停车场或便道),以及某辆车离开停车场时应该交纳的费用和它在停车场内停留的时间。
汽车的模拟输入信息格式可以为:(到达/离开,汽车牌照号码,到达/离开的时间)。用栈和队列来模拟停车场和便道
-Request procedures after the arrival of output per vehicle parking spaces (parking lot or sidewalk), as well as a vehicle to leave the car park should pay the costs and it stays in the parking lot of time. Car format analog input information for: (Arrival/Departure, automobile license plate number, arrival/departure time). Using stack and queue to simulate the parking lot and sidewalk Platform: |
Size: 2048 |
Author:吕璐 |
Hits:
Description: 停车场管理首先,实现栈和队列的基本操作,在此基础上,实现停车场管理。
停车场管理问题描述:设停车场是一个可停放n辆车的狭长通道,且只有一个大门可供汽车进出。在停车场内,汽车按到达的先后次序,由北向南依次排列(假设大门在最南端)。若车场内已停满n辆车,则后来的汽车需在门外的便道上等候,当有车开走时,便道上的第一辆车即可开入。当停车场内某辆车要离开时,在它之后进入的车辆必须先退出车场为它让路,待该辆车开出大门后,其它车辆再按原次序返回车场。每辆车离开停车场时,应按其停留时间的长短交费(在便道上停留的时间不收费)。
试编写程序,模拟上述管理过程。要求以顺序栈模拟停车场,以链队列模拟便道。
从终端读入汽车到达或离去的数据,每组数据包括三项:
① 是“到达”还是“离去”;
② 汽车牌照号码;
③ “到达”或“离去”的时刻。
与每组输入信息相应的输出信息为:
如果是到达的车辆,则输出其在停车场中或便道上的位置;
如果是离去的车辆,则输出其在停车场中停留的时间和应交的费用。
(提示:需另设一个栈,临时停放为让路而从车场退出的车。)
-First of all, car park management, the realization of the basic stack and queue operations, on this basis, the achievement of the car park management.
Description of the car park management: for the parking of the car park is a strip of n-channel vehicles, and there is only one door open to motor out. In the parking lot, the vehicle according to the order of arrival, from north to south in order of priority (assuming the door at the southern tip). If the vehicle has been parked inside vehicles over n, then later in the car to be waiting outside the pavement, when a car driven away, the sidewalk on the first car to be opened. When parking vehicles within a certain time to leave, after it entered the vehicle must first withdraw from the yard to make way for it to be out of the car door, the other vehicles and then order the return of the original car. When the vehicle left the parking lot, should be the length of their stay paid (in the pavement at the time to stay free of charge).
T Platform: |
Size: 1024 |
Author:小也 |
Hits:
Description: 以栈模拟停车场,以队列模拟车场外的便道。每一组输入数据包括三个数据项:汽车“到达”或“离去”信息、汽车牌照号码以及到达或离去的时刻。对每一组输入数据进行操作后的输出信息为:若是车辆到达,则输出汽车在停车场内或便道上的停车位置;若是车辆离去,则输出汽车在停车场内停留的时间和应交纳的费用(在便道上停车不收费)。栈以顺序存储结构实现,队列以链表结构实现。-Simulation of the car park to the stack to queue outside the road vehicle simulation. Input data for each group of three data items: auto " to" or " leave" information, vehicle license number and time of arrival or departure. Input data for each group to operate the output after the message is: If the arrival of the vehicles, while exports of motor vehicles in the parking lot or parking spaces on the sidewalk if the vehicle left, the output of motor vehicles in the parking lot to stay within time and should be paid The cost (in the pavement on the parking, no charge). Stack storage structure in order to achieve, a linked list queue structure. Platform: |
Size: 1024 |
Author:XH |
Hits:
Description: 这是一个简单的停车场管理系统 运用到了栈 和队列-This is a simple parking lot management system applied to the stack and queue Platform: |
Size: 256000 |
Author:yihuolei |
Hits:
Description: 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. Platform: |
Size: 2048 |
Author:SUMMER |
Hits:
Description: 一个简单的停车场车辆进出管理程序,利用队列与栈的基本功能实现。-Vehicles entering and leaving the parking lot of a simple management procedures, the use of the basic functions of the queue and stack implementation. Platform: |
Size: 185344 |
Author:轩辰龙 |
Hits:
Description: 关于停车场停车问题的管理,利用队列的性质就一辆车进停车场后的停车位,停车时间,需交停车费,以及停车场空闲车位的管理等问题-Questions about the management of parking lot, use queue of property is a car into the parking lot after the parking space, stop time, pay parking spot, and free parking management Platform: |
Size: 1024 |
Author:周春露 |
Hits:
Description: 以栈模拟停车场,以队列模拟车场外的便道,按照从终端读入的输入数据序列进行模拟管理。每一组输入数据包括三个数据项:汽车“到达”或“离去”信息、汽车牌照号码及到达或离去的时刻,对每一组输入数据进行操作后的输出数据为:若是车辆到达,则输出汽车在停车场内或便道上的停车位置;若是车离去;则输出汽车在停车场内停留的时间和应交纳的费用(在便道上停留的时间不收费)。栈以顺序结构实现,队列以链表实现。-Parking lot to stack simulation to simulate the queue of cars outside the sidewalk, according to the terminal read from the input data sequence to simulate management. Each set of input data consists of three data items: auto " to" or " leave" information, vehicle license number and arrival or departure time, for each group of input data to operate after the output data is: If the vehicle arrives , the output in a car park or car parking on the sidewalk location if the car away the output of cars in the parking lot of the duration and should pay the costs (time spent on the sidewalk of charge). Structure in order to achieve stack, queue linked list. Platform: |
Size: 4589568 |
Author:李莹丽 |
Hits:
Description: 设停车场是一个可以停放n辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次有北向南排列(大门在最南端,最先到达的第一车停放在车场的最北端),若车场内已停满n辆车,那么后来的车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在它之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间长短交纳费用。试为停车场编制按上述要求进行管理的模拟程序。
以栈模拟停车场,以队列模拟车场外的便道。每一组输入数据包括三个数据项:汽车“到达”或“离去”信息、汽车牌照号码以及到达或离去的时刻。对每一组输入数据进行操作后的输出信息为:若是车辆到达,则输出汽车在停车场内或便道上的停车位置;若是车辆离去,则输出汽车在停车场内停留的时间和应交纳的费用(在便道上停车不收费)。栈以顺序存储结构实现,队列以链表结构实现。-Parking lots can be accommodated is a narrow channel of the n vehicles, and only one door available for car and out. Car in the parking lot, according to the order of the vehicle arrival time, turn north to south order (doors at the southernmost tip, the first to reach the first car parked in the yard of the North), if the car floor is full of parked n the car, then later cars can only wait on the sidewalk outside the door once the car drove off, then came in to open into the first car on the sidewalk when a car in the parking lot to leave behind it into the vehicle must to exit the yard to make way for it to be the car to open outside the gate, other vehicles and then the original order to enter the yard, per parked in the yard when it left the parking lot, the vehicle must pay the cost of the length of time it stays. Test for the simulation program management of the parking lot prepared according to the above requirements.
Parking to stack simulation queue simulation car off the si Platform: |
Size: 1296384 |
Author:卧龙 |
Hits:
Description: 本程序是双工信道哈夫曼的编/译码器,该系统可进行字符与二进制码值间转换。栈模拟停车场,以队列模拟车场外的便道,按照从终端读入的输入数据序列进行模拟管理。-This procedure is a duplex channel Huffman of knitting/decoder, this system can be character and the binary code value among conversion. Stack simulation parking lot to queue simulation car off-board detours, according to read from the terminal of the input data sequence is simulated management.
Platform: |
Size: 3072 |
Author:李密 |
Hits:
Description: 利用栈和队列建立停车场,停车场中的车由栈储存,停车场外设置便道,便道上暂停的车由队列储存!-Use of stacks and queues build a parking lot, the car in the parking lot by the stack storage, parking settings sidewalk outside, the the suspended car on the sidewalk by the queue storage! Platform: |
Size: 4096 |
Author:李斌 |
Hits:
Description: 本实例模拟了一个简单的停车场管理系统。进来一辆车登记后进入车场,如车场满则进来 的车进入便道等候,一旦有车开走则可以便道直接进入车场。用一个浅模拟停车场,用一个队 列模拟车场外的便道。本实例主要向读者介绍如何运用找和队列来解决实际问题。-Simulated in this example a simple parking management system. Come in a car registered to enter the yard, such as yard full of incoming vehicles to enter the sidewalk waiting, once the car drove off the sidewalk directly into the yard. A shallow analog parking, sidewalk outside of a queue simulation car. This example describes how to use the reader to find and queue to solve practical problems. Platform: |
Size: 1024 |
Author:hxk |
Hits:
Description: 本代码实现的是一个简单的停车场管理系统。设停车场是一个可停放n辆汽车的狭长通道,且只有一个大门可供汽车进出。 汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆车停放在停车场的最北端),若车场内已停满n辆汽车,则后来的车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆汽车要离开时,在它之后进入的车辆必须退出车场为它让路,待该车辆开出大门外,其他车辆再按原次序进入车场,每辆停放在停车场的车在它离开停车场时必须按它停留时间的长短缴纳费用。试为停车场编制按上述要求进行管理的模拟程序。
基本要求为:
以栈模拟停车场,以队列模拟车场外的便道,按照从终端读入的输入序列进行模拟管理。每一组输入数据包括三个数据项:汽车“到达”或“离去”信息、汽车牌照号码以及到达或离去的时刻。对每一组输入数据进行操作后的输出信息为:若是车辆到达,则输出汽车在停车场内或便道上的停车位置;若是车辆离去,则输出汽车在停车场内停留的时间和应缴纳的费用(在便道上停留的时间不收费)。栈以顺序结构实现,队列以链表结构实现。-The implementation of the code is a simple car park management system. Suppose the parking is parked cars n the narrow channel, and only one door and out of cars. The arrival time of car in the car park by vehicle, followed by narrow (the door first to arrive at the southernmost tip of the first car in the garage, the northernmost), if the car floor is full of parked cars n , later the car can only wait on the sidewalk outside, once the car drove off, came in the first car on the sidewalk to open into when the parking of a vehicle to leave it incoming vehicles must exit the yard to make way for it to be the vehicle out outside the gate, other vehicles into the yard and then the original order, every car parked in the parking lot when it left the parking lot must stay the length of time to pay costs . Test according to the above requirements for the preparation of parking management simulation program.
The basic requirements are:
The stack analog Parking, to queue simulation car off Platform: |
Size: 242688 |
Author:丁洁琼 |
Hits:
Description: 以栈模拟停车场,以队列模拟车场外的便道,按照从终端读入数据的序列进行模拟管理。每一组输入数据包括三个数据项:汽车的“到达”(‘A’表示)或“离去”(‘D’表示)信息、汽车标识(牌照号)以及到达或离去的时刻。对每一组输入数据进行操作后的输出信息为:若是车辆到达,则输出汽车在停车场内或者便道上的停车位置;若是车辆离去,则输出汽车在停车场停留的时间和应缴纳的费用(便道上停留的时间不收费)。栈以顺序结构实现,队列以链表结构实现。-Parking in the stack simulation to simulate the queue sidewalk outside the car, according to the data read from the terminal sequence simulation management. Each set of input data consists of three data items: car " arrive" (' A' represents) or " left" (' D' indicates) information, auto identification (license number), and the time of arrival or departure. Output information for each set of input data after the operation as follows: If the vehicle arrives, the output car in the parking lot or on a sidewalk parking position If the vehicle leave the car in the parking lot output residence time and should be paid costs (time spent on the sidewalk of charge). Stack structure in order to achieve the queue list structure to achieve. Platform: |
Size: 2048 |
Author:aaaa |
Hits:
Description: 用visual c++实现的栈与队列的基本操作。以停车场为例,具有初始化停车场,添加车辆,车辆出停车场,显示所有车位细信息等功能。-With the basic operation of the stack and queue visual the c++ realization. In the parking lot as an example, with initialization parking lot, add the vehicle, the vehicle out of the parking lot, display all parking fine information and other functions. Platform: |
Size: 233472 |
Author:危育冰 |
Hits:
Description: 一个纯C语言实现在停车场进出的管理的小Demo,主要采用了底层的堆栈和队列的数据结构的实现。-A C program for parking lot manage,which use stack and queue. Platform: |
Size: 2048 |
Author:徐希云 |
Hits:
Description: 立体化停车场(东北大学数据结构课设)
(1)采用栈、队列和有序表等数据结构。
(2)等候车辆的管理。
(3)地下、地面停车位的管理。
(4)停车计费功能。
-Three-dimensional parking lot (Northeast University data structure set)
(1) the use of stack, queue and ordered table and other data structures.
(2) waiting for the management of the vehicle.
(3) management of underground and ground parking spaces.
(4) parking billing function. Platform: |
Size: 1482752 |
Author:慕柯 |
Hits: