2019 The third course is designed to test report

2019 The third course is designed experiments report
a experimental project name
crazy ricochet cum multi-ball rebound (second chapter)
Second, the experimental project functional description
The project is a multi-ball rebound
and the project's main function They are: easyx source code is loaded c language to achieve more complex and rich level of performance of the project. This item c language used to implement an infinite loop while loop, and calculates finite loop for recycling, a total of eight sub-module exists in the main function. In order to achieve rebound the ball, and change the background and determine whether or not to bounce the ball. And ultimately more bounce of the ball.
Third, the project introduces a modular structure
[A] project model:

[Two] text description:
the main function of a module: for (i = 0; i <BallNum; i ++) // random ball position and speed
of the main function of two modules: while (1) // drawn black line, black filled circle.
Module three main functions: for loop to update the coordinates of the ball, and the ball beyond the boundaries of pull back.
Four main function modules: and if used for determining whether the ball hit the wall of
the main function of five modules: a recording pellets and its nearest distance pellets
main function six modules: determining whether a collision between the pellets, and the processing after the collision the result of
the main function seven modules: the yellow line drawn, round green filled
the main function of eight modules: delay three seconds.
The main function modules: function module calls the seven projects to achieve the function.
Fourth, implement the interface display

五, 代码托管链接
https://gitee.com/hhyxtrmz/nuclear_fusion
六, 实验总结
【一】 问题
在dev编译器上编译时出现了大量的错误,尤其是第一个的错误为头文件不存在!

【二】 解决
在仔细阅读教科书后,我惊讶地发现,本项目需要安装一个名为easyx的软件以供支持头文件运行库,可是,在安装该软件的时候,我发现它并没有dev的接入口,也就是说dev无法使用easyx,然后,我果断换上了visual编译器软件,再次编译时,我发现问题均不在出现。还有第一次项目的初始代码,我也用该编译器编译,我发现cwindow竟然可以用!难道dev已经这么久没更新数据库了吗?
【三】 感想
我们在进步的同时,我们需要的编译器也必须进步,如今我们就抛弃了dev用上了visual,可是,当我们无限进步的时候,我们就会需要自己发明自己的编译器软件了吧。真是期待那一天的到来。

Guess you like

Origin www.cnblogs.com/xgzq000000/p/10991236.html