Post
Its an elevator problem. An elevator will know which floor it is on and which floor it is on the way to and which direction it is (Up, Down or Still). The elevator will "work" with another elevator and determine who should get a person that wants to go from a particular floor according to the following principle: If both elevators are still, the closest elevator to the person should move, else the elevator that is not moving should move and when both are in motion do nothing. The lift should also have a function which increments the state ie. increases the floor if the direction is up and decreases when it is down. I hope you understand!
Olalaa Olalaa 22-25, M 3 Answers Nov 17, 2012 in Community

Your Response

Cancel

That's not an actual question.

Best Answer

damn semi colons.

Best Answer

what do you mean?

Best Answer

When I took c++ I had problems with missing the ;'s

Best Answer

Related Questions