文件名称:53091502
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:229.84kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
停车场拥有M个车位和一条进入停车场的便道,便道上最多停放N辆汽车。汽车要想进入车位,首先进入便道等候。若有空闲车位,则停车入位,否则在便道继续等候,直至有车位空出。若便道已经停满等候的汽车,后到达的汽车只能离开,选择其他停车场。设计一个停车场管理系统,模拟停车场的运作,并统计停车场的收入。
(1) 使用随机数产生某一时间段内进入和离开停车场的车辆数目;
(2) 存储并记录如下数据项:汽车到达和离去的时间及汽车的车号;
(3) 车辆到达时,提示汽车的停车位置编号(为车辆分配编号最小的可用车位),若车位已满给出相应提示;
(4) 汽车离去时,输出汽车在停车场内停留的时间和应交纳的费用。
(5) 对该停车场进行统计:统计每天到达、离开的车次,停车总时数、每天停车场的收入等。
-The parking lot has M parking spaces and a enters the parking lot pavement, sidewalk on most N car park. The car wants to enter the parking spaces, first into the sidewalk waiting. If you have free parking space, then into parking spaces, or in the pavement to wait, until the parking space. If the road is always full of waiting vehicles, after the arrival of the car can only choose to leave, other parking lot. The design of a parking management system, parking operation simulation, and statistical parking revenue.( 1) the use of random number generation within a certain period of time to enter and leave the parking of vehicles ( 2) to store and record the following data items: vehicle arrival and departure time and vehicle number ( 3) vehicles arrived, prompt car parking position number ( for the vehicle allocation number minimum available parking spaces) parking is full, if the corresponding prompt ( 4) the car away, the output of motor vehicles in the parking lot stay time and should
(1) 使用随机数产生某一时间段内进入和离开停车场的车辆数目;
(2) 存储并记录如下数据项:汽车到达和离去的时间及汽车的车号;
(3) 车辆到达时,提示汽车的停车位置编号(为车辆分配编号最小的可用车位),若车位已满给出相应提示;
(4) 汽车离去时,输出汽车在停车场内停留的时间和应交纳的费用。
(5) 对该停车场进行统计:统计每天到达、离开的车次,停车总时数、每天停车场的收入等。
-The parking lot has M parking spaces and a enters the parking lot pavement, sidewalk on most N car park. The car wants to enter the parking spaces, first into the sidewalk waiting. If you have free parking space, then into parking spaces, or in the pavement to wait, until the parking space. If the road is always full of waiting vehicles, after the arrival of the car can only choose to leave, other parking lot. The design of a parking management system, parking operation simulation, and statistical parking revenue.( 1) the use of random number generation within a certain period of time to enter and leave the parking of vehicles ( 2) to store and record the following data items: vehicle arrival and departure time and vehicle number ( 3) vehicles arrived, prompt car parking position number ( for the vehicle allocation number minimum available parking spaces) parking is full, if the corresponding prompt ( 4) the car away, the output of motor vehicles in the parking lot stay time and should
(系统自动生成,下载前可以参看下载内容)
下载文件列表
first的实验报告.doc
first/1.txt
first/2.txt
first/Car.cpp
first/Car.h
first/CarFactory.cpp
first/CarFactory.h
first/CarList.cpp
first/CarList.h
first/first.dsp
first/first.dsw
first/first.ncb
first/first.opt
first/first.plg
first/main.c
first/main.cpp
first/Park.cpp
first/Park.h
first/Position.cpp
first/Position.h
first/Queue.cpp
first/Queue.h
first/Recorder.cpp
first/Recorder.h
first/result1.txt
first/result2.txt
first/result3.txt
first/result4.txt
first/1.txt
first/2.txt
first/Car.cpp
first/Car.h
first/CarFactory.cpp
first/CarFactory.h
first/CarList.cpp
first/CarList.h
first/first.dsp
first/first.dsw
first/first.ncb
first/first.opt
first/first.plg
first/main.c
first/main.cpp
first/Park.cpp
first/Park.h
first/Position.cpp
first/Position.h
first/Queue.cpp
first/Queue.h
first/Recorder.cpp
first/Recorder.h
first/result1.txt
first/result2.txt
first/result3.txt
first/result4.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.