Object Oriented Programming Assignment 1

Object Oriented Programming Assignment 1

github link


elevator scheduling problem

lines of code debug数 total time
153 4 about 10h

Although the winter vacation has experienced several winter vacation homework to learn C++ courses, in the elevator scheduling in the winter vacation, they simply use C++ content, such as input and output, and C language is still used habitually in other aspects.

For example, the struct structure is used in the winter vacation. This time, the class is really used according to the requirements of the homework. This homework is also the first time to build a project, and I have a further understanding of C++.

Although the winter vacation is celebrating the New Year, there is still plenty of time. This time, while doing daily study, I have to do this homework. At the beginning, the time arrangement was not reasonable enough, which led to confusion. After learning the lesson, the reasonable arrangement will be easy. Many, I believe that the arrangement of time will become more and more reasonable in the future.

Specific problems and solutions

  1. This time, I asked to build a project and write the class in my own header file. The first time I did this, I was stuck in the reference class file for a long time. After I found an error (the elevator class was added with parentheses), I really found that I was a rubbish. o(╥﹏╥)o
  2. File reading failed, change the file name "input.txt" to "input" to solve
  3. VS 2017's 30-day trial expires, log in to Microsoft account to solve
  4. Using vs 2017 to generate a class diagram failed, Baidu learned that the installation of the class designer component was resolved

Attach the class diagram


Pintia homework

Guess you like

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