-
完整的日历,带有文本框显示功能,对于一般开发没有问题。...
完整的日历,带有文本框显示功能,对于一般开发没有问题。-Full calendar, with a text box display, there is no problem for the general development.
- 2022-10-27 23:20:04下载
- 积分:1
-
This directory contains code implementing the K
This directory contains code implementing the K-means algorithm. Source code
may be found in KMEANS.CPP. Sample data isfound in KM2.DAT. The KMEANS
program accepts input consisting of vectors and calculates the given
number of cluster centers using the K-means algorithm. Output is
directed to the screen.-This directory contains code implementing the K-means algorithm. Source code may be found in KMEANS.CPP. Sample data isfound in KM2.DAT. The KMEANS program accepts input consisting of vectors and calculates the given number of cluster centers using the K-means algorithm. Output is directed to the screen.
- 2023-09-06 05:15:03下载
- 积分:1
-
列出windows进程列表中的个进程所占cpu的百分比
列出windows进程列表中的个进程所占cpu的百分比-List windows process list of the process of the percentage share of cpu
- 2022-02-01 16:59:07下载
- 积分:1
-
利用DLL文件将XML文件分析成文本,并可以录入数据库中
利用DLL文件将XML文件分析成文本,并可以录入数据库中-The use of DLL files into text XML files and can be entered in the database
- 2023-01-09 16:05:04下载
- 积分:1
-
用c程序实现的数字时钟程序,其中包含改程序的所有c代码,以及详细的注释说明。...
用c程序实现的数字时钟程序,其中包含改程序的所有c代码,以及详细的注释说明。-C program with digital clock procedures, including procedures to all the c code, as well as detailed notes.
- 2022-05-09 11:28:11下载
- 积分:1
-
迪杰斯特拉算法,希望对于一些刚学c语言编程的有帮助
迪杰斯特拉算法,希望对于一些刚学c语言编程的有帮助-dijiesitela
- 2022-07-09 23:18:21下载
- 积分:1
-
静态链表.这是刚刚学习数据结构的时候编写的第1个小小程序,用构造类型编写的静态链表,实现了基本的赋值,插入,删除等功能。...
静态链表.这是刚刚学习数据结构的时候编写的第1个小小程序,用构造类型编写的静态链表,实现了基本的赋值,插入,删除等功能。-static List. This is just learning the structure of the data, prepared by the time a small program that will prepare the structure type static chain and achieve the basic assignment, insert, delete capabilities.
- 2022-06-20 07:54:46下载
- 积分:1
-
迷宫追寻小游戏 C++MFC
应用背景
这个游戏为玩家控制红色方块,去吃掉棕色,绿色,蓝色的方块,一旦一个方块被吃,便会自动生成另一个相同颜色的方块。直到游戏时间结束为止。
程序函数功能:
ondraw函数:
显示游戏界面(用画刷刷成白色),显示地图(黑色),显示食物0,1,2(分别为:棕色,绿色,蓝色),显示玩家(红色)
显示文字,时间,分数。
OnEraseBkgnd函数:
用来更新窗口背景,游戏以位图为窗口背景。
OnGameStart函数:
关联窗口菜单中的开始游戏。包括:
IniGame();(初始化游戏)
m_nGameStatus=1;(游戏状态1,开始)
SetTimer(1,100,NULL);(定时器0.1秒执行一次OnTime)
Invalidate();(转向OnDraw)
IniGame函数:
初始化游戏,确定游戏显示位置,确定玩家初始位置,转向IniAim函数
IniAim函数:
初始化目标,这里的三个目标的位置为随机产生。
OnKeyDown函数:
监控设备按下的键,确定玩家移动方向。
ReDisPlay函数:
重画点所在的小方块。减少对Invalidate()的调用,使屏幕不太闪硕。
OmTimer函数:
完成时间的计算。
关键技术游戏中的人工智能:
棕色方块的移动算法为基本寻路算法—物体沿着墙走。
绿色方块的移动算法为基本的逃避算法—物体总会向玩家的反方向移动。
蓝色方块的移动算法为漫游算法—随机产生一个方向值,物体移动的方向不
- 2022-03-23 18:25:51下载
- 积分:1
-
DumpROM源代码,用于WINCE的dumprom.exe工具学习
dumprom source code,use for learning the dumprom.exe tool for wince
- 2022-07-23 18:27:07下载
- 积分:1
-
This program computes the electric field and potential distributions of a dipole...
用来计算电偶极子的电场和电势分布,当然也可以根据需要计算更高阶的电场,只要保留到相应的阶次就OK了。-This program computes the electric field and potential distributions of a dipole. You can also compute higher order electric field with it by preserving the series to corresponding order.
- 2023-01-19 06:55:03下载
- 积分:1