TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tiny Little Elevator Simulator (Qt)

7 pointsby aminbandalialmost 12 years ago
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! ^_^

3 comments

ntumlinalmost 12 years ago
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?
评论 #6232812 未加载
评论 #6232735 未加载
scrumperalmost 12 years ago
There&#x27;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&#x27;s because in the arrogance of youth we think that the only reason people have to wait for elevators is because Otis hasn&#x27;t embraced the computer age. With just a little application of programming skill everything could be so much better. Never mind that it&#x27;s actually really hard...<p>This isn&#x27;t a dig at the poster; it just sparked some memories.
guidopallemansalmost 12 years ago
We had to make this as a &quot;practicum&quot; 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:&#x2F;&#x2F;gist.github.com&#x2F;brambram&#x2F;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)
评论 #6232789 未加载