-
自己编的俄罗斯方块游戏,使用键盘上的方向键进行游戏:左键左移,右键右移,下键快速下落,上键改变形状。菜单项中帮助有按键说明。菜单中可以选择游戏难度,游戏分为困难...
自己编的俄罗斯方块游戏,使用键盘上的方向键进行游戏:左键左移,右键右移,下键快速下落,上键改变形状。菜单项中帮助有按键说明。菜单中可以选择游戏难度,游戏分为困难、普通和容易三个默认级别。
-own addendum to the Russian box game, the use of keyboard keys for the game : Left-left, right-shifted to the right. Quick keys whereabouts on the key change shape. Help menu item shows a button. Menu can be difficult to choose the game, the game is difficult, the ordinary and easy three-level default.
- 2022-12-10 00:55:03下载
- 积分:1
-
89c51单片机内部所有寄存器功能介绍(89X5X.H),并有详细的中文资料...
89c51单片机内部所有寄存器功能介绍(89X5X.H),并有详细的中文资料-89c51 microcontroller all the registers within the functional description (89X5X.H), and detailed information in Chinese
- 2023-06-29 08:55:04下载
- 积分:1
-
[输入]
图的顶点个数N,图中顶点之间的关系及起点A和终点B
[输出]
若A到B无路径,则输出“There is no path” 否则输出A到B路...
[输入]
图的顶点个数N,图中顶点之间的关系及起点A和终点B
[输出]
若A到B无路径,则输出“There is no path” 否则输出A到B路径上个顶点
[存储结构]
图采用邻接矩阵的方式存储。
[算法的基本思想]
采用广度优先搜索的方法,从顶点A开始,依次访问与A邻接的顶点VA1,VA2,...,VAK, 访问遍之后,若没有访问B,则继续访问与VA1邻接的顶点VA11,VA12,...,VA1M,再访问与VA2邻接顶点...,如此下去,直至找到B,最先到达B点的路径,一定是边数最少的路径。实现时采用队列记录被访问过的顶点。每次访问与队头顶点相邻接的顶点,然后将队头顶点从队列中删去。若队空,则说明到不存在通路。在访问顶点过程中,每次把当前顶点的序号作为与其邻接的未访问的顶点的前驱顶点记录下来,以便输出时回溯。
#include
int number //队列类型
typedef struct{
int q[20]
-[imported] map of the number of vertices N, Vertex map of the relationship between the starting point and end point A and B [output] if A to B without path then exporting "There is no path" Otherwise output A to B on the path vertices [storage structure] plan adopted adjacency matrix of storage. [Algorithm for the basic idea] BFS way from the vertex A, A visit followed with adjacent vertices VA1, VA2 ,..., VAK, visiting times, if not visit B, continue to visit with the VA1 adjacent vertices VA11, VA12 ,..., VA1M. VA2 and then
- 2022-01-25 22:50:29下载
- 积分:1
-
VC++6.0和Directx打造RPG
VC++6.0和Directx打造RPG-diablo2 执行程序及源代码~-VC create DirectX 6.0 and RPG-diablo2 procedures and the implementation of the source code ~
- 2022-09-07 11:45:03下载
- 积分:1
-
Own procedures, on the time slice of rotation scheduling algorithm.
自己的小程序,关于时间片轮转调度算法的。-Own procedures, on the time slice of rotation scheduling algorithm.
- 2022-03-21 17:23:02下载
- 积分:1
-
重载+=为字符串的连接
重载+=为字符串的连接-Heavy+ = connected to a string of
- 2022-03-02 13:53:47下载
- 积分:1
-
AutoCAD environment, since the definition of the entity good example ARX help de...
AutoCAD环境中,自定义实体的很好的例子,有助于ARX开发人员快速掌握自定义实体的技术-AutoCAD environment, since the definition of the entity good example ARX help developers quickly grasp from the technical definition of entities
- 2022-10-04 07:00:02下载
- 积分:1
-
用的是+ +程序,实现有限的
用VC++程序实现有限差分波动方程不加边界条件二阶变速剖面。-With VC++ Procedures to achieve finite-difference wave equation without boundary conditions of second-order variable-speed profile.
- 2022-07-25 07:56:53下载
- 积分:1
-
最新的网络版(2007年8月)的ns2英文手册做成的pdf版,对于深入学习ns2的内部机制很有用处。...
最新的网络版(2007年8月)的ns2英文手册做成的pdf版,对于深入学习ns2的内部机制很有用处。-The latest online edition (August 2007) is made of ns2 manual pdf English version, for the ns2-depth study of the internal mechanism is very useful.
- 2022-06-17 15:46:46下载
- 积分:1
-
信息隐藏中用于数字隐写的常用算法:LSB替换LSB匹配,包括随机的和排序的,以及对文件和文件夹进行操作,用CxImage类能快速读取各种格式的图象...
信息隐藏中用于数字隐写的常用算法:LSB替换LSB匹配,包括随机的和排序的,以及对文件和文件夹进行操作,用CxImage类能快速读取各种格式的图象-Information Hiding for digital steganography of the commonly used algorithms: LSB replacement of LSB matching, including random and sort of, as well as files and folders to operate, using CxImage category can quickly read a variety of formats image
- 2022-12-09 16:00:03下载
- 积分:1