-
Is mainly a brief introduction to use VC++ to achieve some of the functions, the...
主要是简单介绍一些利用VC++实现的功能,窗口风格,二进制文件等-Is mainly a brief introduction to use VC++ to achieve some of the functions, the window style, binary files, etc.
- 2022-01-25 20:01:15下载
- 积分:1
-
c++实现的俄罗斯方块代码,大家感兴趣可以看一下
不错哦
c++实现的俄罗斯方块代码,大家感兴趣可以看一下
不错哦-c realization of the Russian box code, we can look at the interest Yes, oh
- 2022-01-22 14:15:37下载
- 积分:1
-
CFG
CFG-_INI配置文件读写测试程序-CFG- _INI configuration file read and write test procedures
- 2022-04-22 06:57:47下载
- 积分: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
-
VB编写的咬格子小游戏 ,非常简单的实现,适合于VB的初学者学习...
VB编写的咬格子小游戏 ,非常简单的实现,适合于VB的初学者学习-VB prepared by the bite of small lattice games, the realization of a very simple and suitable for beginners to learn VB
- 2022-01-21 04:28:02下载
- 积分:1
-
该系统采用B/S架构设计的一个小型的通讯录系统,功能完善,非常实用...
该系统采用B/S架构设计的一个小型的通讯录系统,功能完善,非常实用-The system uses B/S architecture design of a small address book system, fully functional, very practical
- 2022-03-30 00:52:32下载
- 积分:1
-
AD7746,我做过,已经成功,欢迎下载!
AD7746,我做过,已经成功,欢迎下载!-AD7746, I have done has been successful, welcome to download!
- 2022-02-06 18:19:15下载
- 积分:1
-
这是一个用multisim编写的用8421BCD码表示的两个一位十进制数相加的加法器...
这是一个用multisim编写的用8421BCD码表示的两个一位十进制数相加的加法器-This is a prepared using Multisim 8421BCD Code with two express a decimal number the sum of the adder
- 2022-11-10 01:45:04下载
- 积分:1
-
JAVA编写的推箱子游戏
虽然很简单也是不错的经典
JAVA编写的推箱子游戏
虽然很简单也是不错的经典
-JAVA prepared Sokoban game is pretty good although very simple classic
- 2022-08-17 16:45:08下载
- 积分:1
-
使用著名的KMP模式匹配算法进行字符串匹配,还可以有通配符...
使用著名的KMP模式匹配算法进行字符串匹配,还可以有通配符-use of the famous KMP string matching algorithms can also be wildcards
- 2023-07-23 20:25:02下载
- 积分:1