-
XP下双开3389并且删除windows自带防火墙
XP下双开3389并且删除windows自带防火墙-XP and 3389 under the dual-open windows own firewall delete
- 2022-05-19 12:08:01下载
- 积分:1
-
this is an implementation of a des algorithm
this is an implementation of a des algorithm
- 2022-05-17 00:25:40下载
- 积分: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
-
北星定位,利用C++环境,定位一个朋友需要分类。
北星定位,采用C++环境,需要定位处理类的朋友可以下载-Beixing positioning, using C++ Environment, the need for positioning a friend class can be downloaded
- 2022-04-19 02:46:02下载
- 积分:1
-
DOOM源代码 DOOM源代码
DOOM源代码 DOOM源代码-DOOM source code of DOOM source code of DOOM source code
- 2023-03-30 19:00:04下载
- 积分:1
-
大整数相加,对于超过语言中长的数相加时, 可用它。
大整数相加,对于超过语言中长的数相加时, 可用它。-large integer addition, the language-more than a few together, it can be used.
- 2022-01-31 22:08:10下载
- 积分:1
-
wavelet denoise
小波分解和重构,用来分析信号的低高频变换,得到近似信号和细节信号。是比较好的数据处理方法-wavelet denoise
- 2022-06-13 14:28:32下载
- 积分:1
-
应用程序容易看懂并为我们所用
应用程序容易看懂并为我们所用-applications easily accessible and has been used
- 2022-04-30 02:15:34下载
- 积分:1
-
汇编编的小程序
用汇编编的小程序-用89C52控制的电子时钟-compilation series with the small program- with 89C52 control electronic clock
- 2022-05-30 18:51:30下载
- 积分:1
-
快速排序与交换排序算法比较
在Visual C++中建立一个单文档Windows应用程序,并实现下述功能:
运用随机函数自动生成一定规模的测试数据 (1...
快速排序与交换排序算法比较
在Visual C++中建立一个单文档Windows应用程序,并实现下述功能:
运用随机函数自动生成一定规模的测试数据 (10000个测试元素),并输出到文件中。
分别执行快速排序算法和交换排序算法对测试数据排序,并输出到不同的文件中。
使用较为精确的QueryPerformanceCounter和QueryPerformanceFrequency等函数记录算法耗时,精确到毫秒,以便更好地进行算法耗时比较。
分析两种不同算法,有针对性地设计与调整测试数据,进而通过比较算法耗时来得到更充分且更深刻的认识。
编写模块校验两种不同排序算法的输出结果正确且相同
-Quicksort sorting algorithm comparison and exchange
In the Visual C++ to create a single document Windows application, and to achieve the following functions:
The use of random function automatically generates a certain amount of test data (10000 test elements), and output to a file.
Respectively, and the exchange of the implementation of quick sort algorithm sorting algorithm to sort of test data, and output to a different file.
Using a more accurate record of QueryPerformanceCounter and QueryPerformanceFrequency algorithms such as time-consuming functions, accurate to the millisecond, in order to better carry out time-consuming compared algorithms.
Analysis of two d
- 2022-04-22 17:20:42下载
- 积分:1