-
此应用程序是一个无线传感器网络的模拟。这样的网络…
This application is a simulation of a wireless sensor network. Such a network is used to detect and report certain events across an expanse of a remote area - e.g., a battlefield sensor network that detects and reports troop movements. The idea behind this network is that it can be deployed simply by scattering sensor units across the area, e.g. by dropping them out of an airplane the sensors should automatically activate, self-configure as a wireless network with a mesh topology, and determine how to send communications packets toward a data collector (e.g., a satellite uplink.) Thus, one important feature of such a network is that collected data packets are always traveling toward the data collector, and the network can therefore be modeled as a directed graph (and every two connected nodes can be identified as "upstream" and "downstream.") -This application is a simulation of a wireless sensor network. Such a network is used to detect and report certain events across an expanse of a
- 2022-02-13 05:01:20下载
- 积分:1
-
windwos操作系统下缓冲区溢出演示源代码。。珍品。收藏
windwos操作系统下缓冲区溢出演示源代码。。珍品。收藏-Windows operating system source code buffer overflow demo. . Treasures. Favorites
- 2023-01-28 05:50:03下载
- 积分: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
-
电驴的源代码实现参考Visual C++实现…
emule的实现源码,仅供参考,在Visual C++中实现-emule realize the source code for reference purposes only and in Visual C++ achieve
- 2022-07-21 02:00:21下载
- 积分:1
-
网页设计
具有视频播放和播放时聊天的功能,目前是界面阶段
- 2022-03-06 22:57:03下载
- 积分:1
-
利用gSoap生成的WebServer服务端提供Add、Sub、Mul、Div等接口
应用背景做为WebServer服务端,提供加、减、乘、除四个WebServer服务的接口。使用C/C++语言进行开发WebServer服务,可以练习使用开源的gSoap框架,区别于用其他语言进行的WebServer服务的开发。关键技术利用gSoap框架,根据calcsoap.h文件,生成wsdl文件和相关的 soapServer.cpp、soapC.cpp、soapH.h、soapStub.h 文件,新建 VC 2008 基于 Win32 控制台的应用程序,作为WebServer服务端,提供 ns__add、ns__sub、ns__mul、ns__div(即加、减、乘、除)四个WebServer服务的接口,并支持利用提供 calcsoap.wsdl 文件给 soap UI 测试工具进行测试。
- 2022-03-18 13:16:42下载
- 积分:1
-
it is C or C++ .and it can be used by the newer .it is very easy.i think you can...
it is C or C++ .and it can be used by the newer .it is very easy.i think you can learn it.
- 2023-07-24 04:40:02下载
- 积分:1
-
一个时钟显示的程序,有时针、分针、秒针的走时显示
一个时钟显示的程序,有时针、分针、秒针的走时显示-a clock showed procedures and hand of a clock, watches, at the hands of the show away
- 2022-08-13 23:21:40下载
- 积分:1
-
控制摄像头的vc++程序源码
控制摄像头的vc++程序源码
控制摄像头的vc++程序源码
控制摄像头的vc++程序源码-Control camera vc++ program source code control camera vc++ program source code
- 2022-04-08 17:43:28下载
- 积分:1
-
windows编程循序渐进
windows编程循序渐进一书为我们详细而全面地介绍了vc++的编程基础知识,本书共20章,内容全面丰富,适合于vc++初学者和相关的工程技术人员。
此部分为配套的code源码,方便学习使用,祝大家学习愉快。
- 2023-01-13 18:40:09下载
- 积分:1