object oriented programming 1

GitHub:Destr[https://github.com/Destr-s/Destr]


Pintia homework


****

Elevator dispatch work

Compared with the winter vacation, the elevator scheduling this time is slightly simpler. The initial idea is to define the up and down functions separately, but in this middle, the judgment method of passengers boarding the elevator during the operation process is not clear, and then consider the floor. There are only three layers, so the data is processed one by one, but the program is not perfect, there are still many bugs, and will continue to improve in the future.

Next, the class diagram is presented

****

summary

Although the elevator scheduling program is not perfect this time, I have learned some uses of vs, the simple and practical classes in C++, and made up for the use of git that was delayed due to computer problems during the winter vacation. In short, I learned There are still a lot of things, and I will improve my coding ability and the use of various tools in the next homework.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324649249&siteId=291194637