-
51贪吃蛇程序
应用背景(2)蛇的运动
此程序的关键就在于蛇的移动。游戏在进入界面后,在没有执行任何操作的情况下,蛇沿着原来的方向以某一速度前行。若蛇在水平方向上前行,操作者按向左或向右的键,此时该指令判为无效,蛇继续沿着原来水平的方向前行。同样的道理,若蛇在竖直的方向上前行,操作者按向上或向下的键,此时该指令也判为无效,蛇继续沿着原来竖直的方向前行。关键技术图形的驱动,首先是由detectgraph通过检测硬件确定图形驱动程序和模式,然后把自动测试硬件的结果赋给图形驱动器。不同的显示器适配器有不同的图形分辨率。即是同一显示器适配器, 在不同模式下也有不同分辨率。因此, 在屏幕作图之前, 必须根据显示器适配器种类将显示器设置成为某种图形模式, 在未设置图形模式之前,微机系统默认屏幕为文本模式(80列, 25行字符模式), 此时所有图形函数均不能工作。再由initgraph()函数,根据测试结果初始化图形。
- 2023-02-02 18:30:04下载
- 积分:1
-
对几个数据进行进行排序的算法
工程应用中,往往会涉及到简单的排序算法,尤其是在采样过程中,一般都会先采集一定点的数据,然后进行排序,最终取中间的数据进行平均。
- 2023-02-19 15:20:03下载
- 积分:1
-
随机化算法
随机化算法-Randomized Algorithms
- 2022-05-17 07:40:54下载
- 积分:1
-
Implementations of different methods of sorting:
BinaryInsertions.pas
Bub...
Implementations of different methods of sorting:
BinaryInsertions.pas
BubbleSort.pas
HeapSort.pas
InsertionBorder.pas
InsertionSort.pas
modifbubble.pas
qsort.pas
quicksort.pas
selection.pas
Shaker.pas
shell.pas
- 2023-06-02 19:15:03下载
- 积分:1
-
顺序表的实现
资源描述大家好,这是我大学写的数据结构顺序表的实现,非常有参考价值
- 2023-08-20 13:45:03下载
- 积分:1
-
编写另一版本结构手册,有待学习并进一步提高
编写另一版本结构手册,有待学习并进一步提高-Another version of the structure of the preparation of manuals, to be learning and to further improve
- 2022-04-13 04:35:21下载
- 积分:1
-
决策树算法的实现。对于初学算法的人有一定的帮助。
决策树算法的实现。对于初学算法的人有一定的帮助。-Decision tree algorithm. Algorithm for beginners who have some help.
- 2022-02-15 19:48:00下载
- 积分:1
-
边缘检测蚁群算法
人工蚁群算法是一种群体智能算法。我们可以在边缘检测中的 aplicate。该算法具有更多的 interestanting 群 comportament 什么时候看。存在基于群智能的 incontible 算法,此实现建造的 matlab 程序代码很容易在任何图像测试中使用。
- 2022-03-16 00:48:51下载
- 积分:1
-
做一个好的网格程序,是一个封装ParaMesh FORTRAN 90程序设计…
做网格的好程序,PARAMESH is a package of Fortran 90 subroutines designed to provide an application developer with an easy route to extend an existing serial code which uses a logically cartesian structured mesh into a parallel code with adaptive mesh refinement(AMR).
-Do a good grid procedures, PARAMESH is a package of Fortran 90 subroutines designed to provide an application developer with an easy route to extend an existing serial code which uses a logically cartesian structured mesh into a parallel code with adaptive mesh refinement (AMR).
- 2022-01-26 14:07:51下载
- 积分:1
-
Knapsack problem implementation code
这是一个用遗传算法实现背包问题的JAVA代码。代码已经过测试,是确定的
- 2022-02-03 22:04:21下载
- 积分:1