I coded this about 9 months ago. A lot has changed. I've learned a lot more. The code might look ridiculous to you, but I thought someone might find it useful! ^_^
Just looking at elevator.cpp briefly, it seems like some comments are unnecessary, e.g., stating that the constructor is the constructor. Also, I was confused by the switch statement that took a boolean and had a case for true and false. Why didn't you use an if statement?
There's something about elevators and early-stage computer science students. I remember that writing a lift scheduling algorithm was a really popular project at my school. I think it's because in the arrogance of youth we think that the only reason people have to wait for elevators is because Otis hasn't embraced the computer age. With just a little application of programming skill everything could be so much better. Never mind that it's actually really hard...<p>This isn't a dig at the poster; it just sparked some memories.
We had to make this as a "practicum" in our computer science class.<p>This is what I made in about 5 hours (java)<p><a href="https://gist.github.com/brambram/6261967" rel="nofollow">https://gist.github.com/brambram/6261967</a><p>(it was made in 2 sessions, in the 2nd session we had to expand the elevator code so it supported 2D movement)