-
Easy Hide and Unhide your Folder (Security Medium)
Easy Hide and Unhide your Folder (Security Medium)
- 2022-01-22 07:14:03下载
- 积分:1
-
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示...
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示:
Input Format:
第一行输入两个值,第一个是图中顶点的个数,第二个是图中边的条数
第二行输入各顶点的信息,即输入每个顶点字符
第三行开始输入每条边,每条边的形式为两个顶点的序号,中间以空格隔开,输入完一条边换行
Output format:
首先输出图的顶点信息,输出完毕换行
接着输出图的邻接矩阵,假如图中有n个顶点,则输出形式为n行n列的邻接矩阵,输出完毕换行
接下来一行输出从图的第一个顶点开始进行深度优先遍历的序列,中间以空格隔开,输出完毕换行
最后一行输出从图的第一个顶点开始进行广度优先遍历的序列,中间以空格隔开,输出完毕换行
-Using an undirected graph adjacency matrix representation to complete the map creation, graph depth-first traversal, graph breadth-first traversal operation. In which vertex information is character, the graph vertex number by characters in order. The input sample used in the diagram are as follows:
Input Format:
The first line of input two values, the first one is the number of graph vertices, the second one is the number of graph edges
Second row, enter information in each vertex, that enter each vertex character
Start typing in the third line of each side, each side in the form of two vertices
- 2022-01-26 03:32:41下载
- 积分:1
-
Useful information on a drawing if you have similar trouble also upload informat...
很有用的一份图纸资料
如果各位有类似资料麻烦也上传上来哈-Useful information on a drawing if you have similar trouble also upload information onto Kazakhstan
- 2022-05-21 07:03:41下载
- 积分:1
-
Standard Regular Expression Searcher Addin For VS.NET 2003
Standard Regular Expression Searcher Addin For VS.NET 2003
- 2022-02-13 10:44:43下载
- 积分:1
-
读取目录下的所有txt文本文件
资源描述读取指定目录下的所有文本文件,指定目录是m_strSDFile,这个变量可以按需要改变,可以打开一个目录让用户选择。读取的方法采用递归调用,如果txt文件比较多,对于内存占用会比较多。文本文件的大小没有限制。文本文件找到后,存储在m_TxtFileArry中。
- 2022-09-20 19:15:03下载
- 积分:1
-
Zuma fun game' s source code has been compiled through, you can use, there is...
好玩的祖玛小游戏的源代码,已编译通过,可以正常使用,没有密码-Zuma fun game" s source code has been compiled through, you can use, there is no password
- 2022-07-01 18:14:56下载
- 积分:1
-
text editor (2), relying on information mechanism is different from MFC and WINA...
文本编辑器(2),自建消息机制,不同于MFC和WINAPI,是上次上传的继续-text editor (2), relying on information mechanism is different from MFC and WINAPI is uploaded to the last
- 2022-08-13 10:56: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
-
网业文件转换成txt文件,方便阅读
网业文件转换成txt文件,方便阅读-network industry convert documents into the txt file, easy reading
- 2023-05-12 03:40:02下载
- 积分:1
-
在VC,MFC中显示图像,如GIF,JPEG等格式
在VC,MFC中显示图像,如GIF,JPEG等格式-in VC, MFC showed images such as GIF, JPEG format, etc.
- 2022-07-13 00:45:24下载
- 积分:1