文件名称:53091502

介绍说明--下载内容均来自于网络,请自行研究使用

停车场拥有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
(系统自动生成,下载前可以参看下载内容)

下载文件列表

first的实验报告.doc

.....\1.txt

.....\2.txt

.....\Car.cpp

.....\Car.h

.....\CarFactory.cpp

.....\CarFactory.h

.....\CarList.cpp

.....\CarList.h

.....\first.dsp

.....\first.dsw

.....\first.ncb

.....\first.opt

.....\first.plg

.....\main.c

.....\main.cpp

.....\Park.cpp

.....\Park.h

.....\Position.cpp

.....\Position.h

.....\Queue.cpp

.....\Queue.h

.....\Recorder.cpp

.....\Recorder.h

.....\result1.txt

.....\result2.txt

.....\result3.txt

.....\result4.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org