The third course is designed to spring 2019 report

The second course is designed to spring 2019 report

First, the pilot project name

Real-time clocks

Second, the experimental project functional description

Corresponds to a timer, calculation of minute by rotating the second hand, the minute hand is calculated by the rotation of the hour a timepiece.

Third, the project introduces modular structure

Step One: Draw static seconds. That is the definition of the center coordinates of the starting point of the second hand, the length of the second hand is defined, the end point coordinates. Using the model and function setting line widths, drawn last seconds.

Second step: rotation of the second hand. Variables defined as an angle corresponding to the second hand, the knowledge obtained by using trigonometry end coordinates of the second hand.

Third step: rotation of the actual time. Defined system variables (SYSTEMTIME), acquires the current time by GetLocalTime (& ti), the second hand of the angle determined by the actual time.

The fourth step; add hour and minute hands. In length, width, color, rotation speed different and each has a corresponding value.

Step Five: Add a dial scale. Drawing dial function using the output character on a screen, so that rotation of the hour and minute hands more natural.

Fourth, implement the interface display

V. code hosting links

Real-time clocks .

Six experimental summary

Question 1: Build Problems code? Question 2: The code is too long, some parts can not understand.

Solution: The first question due devc ++ compiler not need to be replaced more powerful compiler software visio studio 2019 .. The second issue first in line to look for answers to explain the reference Gangster. Ask the students to read, until thoroughly understand so far.

Sentiment: more to the back only to find difficulty playing games is relatively large, they can not do it independently, because a lot of things did not learn, I do not know the use of some functions. Design a game requires a strong knowledge base and strong mathematical skills. But these two I still catch, effort is not enough to be brave and move on.

Guess you like

Origin www.cnblogs.com/wsyhc/p/10988034.html