02

所属分类:Windows编程
开发工具:Visual C++
文件大小:6KB
下载次数:3
上传日期:2013-01-07 11:00:09
上 传 者woshizhangkun
说明:  电梯模拟系统问题描述:    模拟某校九层教学楼的电梯系统。该楼有一个自动电梯,能在每层停留。九个楼层由下至上依次称为地下一层、第一层、第二层、……第八层,其中第一层是大楼的进出层,即是电梯的“本垒层”,电梯“空闲”时,将来到该层候命。    乘客可随时地进出于任何层。对于每个人来说,他有一个能容忍的最长等待时间,一旦等候电梯时间过长,他将放弃。 模拟时钟从0开始,时间单位为0.1秒。人和电梯的各种动作均要消耗一定的时间单位(简记为t),比如:有人进出时,电梯每隔40t检测一次,若无人进出,则关门;关门和开门各需要20t;每个人进出电梯均需要25t;如果电梯在某层精致时间超过300t,则驶回1层候命
(Description of the problem: Simulation of a school nine-story classroom building elevator system. Even an escalator at each stay. Nine floors from bottom sequentially called underground layer, the first layer, the second layer, ...... eighth layer, wherein the first layer is the building of the access layer, that is, the home base layer "of the elevator, the elevator" idle "will come to the layer on standby. Passengers and out at any time in any layer. For each person, he has a tolerance longest wait time, waiting for the elevator too long, he will give up. Analog clock from 0, the unit of time is 0.1 seconds. And lift a variety of actions have to consume a certain amount of time units (abbreviated as t), such as: was out, elevator every 40t detection, time, if not the movement of people, closed closing and opening each 20t each individuals out of the elevator are 25t elevator in a layer of fine more than 300t, drove back a layer on standby)

文件列表:
02.cpp (25819, 2013-01-07)

近期下载者

相关文件


收藏者