Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Elevator static operating time

  • Loading branch information...
commit d7219328d6db35fe3db0d49baeecd2f42af67614 1 parent e747f87
鲜染 authored

Showing 2 changed files with 12 additions and 8 deletions. Show diff stats Hide diff stats

  1. +4 0 elevator.h
  2. +8 8 main.cpp
4 elevator.h
@@ -7,6 +7,10 @@ class Elevator
7 7 int pos;
8 8 int nPassenger;
9 9 char dir;
  10 + static int timeToggleDoor;
  11 + static int timeMove;
  12 + static int timeSpeedDown;
  13 + static int timeSpeedUp;
10 14 public:
11 15 /* Construct Elevator with capacity */
12 16 Elevator(int capacity_);
16 main.cpp
@@ -8,13 +8,13 @@ double lambda;
8 8
9 9 int main(int argc, const char * argv[])
10 10 {
11   - lambda = atof(argv[1]);
12   - srand(time(NULL));
13   - /* Print Poiss random number */
14   - for(int i = 0; i < 1000; i++) {
15   - cout << PoissRand(lambda) << " ";
16   - }
17   - cout << endl;
  11 + lambda = atof(argv[1]);
  12 + srand(time(NULL));
  13 + /* Print Poiss random number */
  14 + for(int i = 0; i < 1000; i++) {
  15 + cout << PoissRand(lambda) << " ";
  16 + }
  17 + cout << endl;
18 18
19   - return 0;
  19 + return 0;
20 20 }

0 comments on commit d721932

Please sign in to comment.
Something went wrong with that request. Please try again.