-
51贪吃蛇程序
应用背景(2)蛇的运动
此程序的关键就在于蛇的移动。游戏在进入界面后,在没有执行任何操作的情况下,蛇沿着原来的方向以某一速度前行。若蛇在水平方向上前行,操作者按向左或向右的键,此时该指令判为无效,蛇继续沿着原来水平的方向前行。同样的道理,若蛇在竖直的方向上前行,操作者按向上或向下的键,此时该指令也判为无效,蛇继续沿着原来竖直的方向前行。关键技术图形的驱动,首先是由detectgraph通过检测硬件确定图形驱动程序和模式,然后把自动测试硬件的结果赋给图形驱动器。不同的显示器适配器有不同的图形分辨率。即是同一显示器适配器, 在不同模式下也有不同分辨率。因此, 在屏幕作图之前, 必须根据显示器适配器种类将显示器设置成为某种图形模式, 在未设置图形模式之前,微机系统默认屏幕为文本模式(80列, 25行字符模式), 此时所有图形函数均不能工作。再由initgraph()函数,根据测试结果初始化图形。
- 2023-02-02 18:30:04下载
- 积分:1
-
判断点是否在多面体之中
判断点是否在多面体之中- Sentences the break point whether in polyhedron
- 2022-03-31 04:33:18下载
- 积分:1
-
聚类算法的实现
该代码使用c++语言在vc下分别实现了层次聚类,k均值聚类,模糊k均值,em聚类等聚类算法。对于初学数据挖掘的人有一定的借鉴作用。代码简单易懂,容易看懂。
- 2023-07-03 06:15:04下载
- 积分:1
-
求函数最优解经典方法的C语言源程序,对编程有很大帮助
求函数最优解经典方法的C语言源程序,对编程有很大帮助-optimal solution for the classical function of the C language source of programming will be of great help
- 2022-01-26 17:35:29下载
- 积分:1
-
这是用C编写的贪婪算法,非常实用,欢迎大家下载哈!
这是用C编写的贪婪算法,非常实用,欢迎大家下载哈!-This is prepared by using C greedy algorithm is very practical, welcomed everyone to download Ha!
- 2022-03-25 10:51:26下载
- 积分:1
-
Statistics module C++ Source can be used to calculate the statistics.
统计模块的 C++源程序 ,可以用来计算统计数据. -Statistics module C++ Source can be used to calculate the statistics.
- 2023-04-13 04:10:03下载
- 积分:1
-
模拟退火算法通用类,改编自TSP问题求解,采用Java5范式来表示解,需要实现:评估算法,获取当前解的领域,detalT【温度变化值】,loopCount【循环...
模拟退火算法通用类,改编自TSP问题求解,采用Java5范式来表示解,需要实现:评估算法,获取当前解的领域,detalT【温度变化值】,loopCount【循环次数】可调,更原始类型参看SACompute-Simulated annealing algorithm generic categories, adapted from the TSP problem solving, using Java5 solution paradigm to express the need to realize: To evaluate the algorithm, the field of access to the current solution, detalT value] [temperature changes, loopCount] [cycles adjustable, more primitive type of See SACompute
- 2023-04-07 14:00:02下载
- 积分:1
-
vc wrote of the source is the type of game procedures. Calling many of the syste...
vc写的源程序,是关于游戏类的程序。调用了系统的很多API-vc wrote of the source is the type of game procedures. Calling many of the system API
- 2022-07-17 18:20:39下载
- 积分:1
-
基于libtommath的CRT大数实现
采用libtommath大数库对中国剩余定理算法通解进行改写,支持128位的大数实现,已测试成功。
- 2022-08-13 23:23:22下载
- 积分:1
-
这本书提供了所有基本数学函数的高精度的算法
这本书提供了所有基本数学函数的高精度的算法-This book provides all the basic mathematical functions of the high-precision algorithm for
- 2023-03-14 03:25:04下载
- 积分:1