-
用API函数编写一个键盘处理程序,要求在窗口中绘制一个矩形,大小与颜色自己确定,当按光标键时,矩形能够随之移动,若按字符键时能够将按键的字符写在矩形中,写满自动...
用API函数编写一个键盘处理程序,要求在窗口中绘制一个矩形,大小与颜色自己确定,当按光标键时,矩形能够随之移动,若按字符键时能够将按键的字符写在矩形中,写满自动清空。-used to prepare an API function keyboard handling procedures, requirements in the window drawing a rectangle, Size and color set ourselves that if the cursor keys, will be moved to rectangular, According to Key characters will be able to switch characters written on the rectangular, written all over automatically emptied.
- 2023-03-01 00:55:03下载
- 积分:1
-
贪吃蛇源码 vc6.0编译无错,代码可用,可以完成平常见到的贪吃蛇的功能...
贪吃蛇源码 vc6.0编译无错,代码可用,可以完成平常见到的贪吃蛇的功能-classical game, snake eating food and then became long
- 2023-04-09 21:15:04下载
- 积分:1
-
tc工具grep的源程序代码
tc工具grep的源程序代码-tc grep tool for the source code
- 2022-02-01 19:09:27下载
- 积分: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
-
对五星级酒店的管理!只实现定房,退房,查商品的功能!
对五星级酒店的管理!只实现定房,退房,查商品的功能!-The management of the five-star hotel! Only to achieve the set room, check, check functional product!
- 2022-01-26 15:50:08下载
- 积分:1
-
用C++开发的推箱子的游戏,一款益智游戏。
用C++开发的推箱子的游戏,一款益智游戏。-With C++ Development of the game Sokoban, a puzzle game.
- 2022-07-23 03:20:01下载
- 积分:1
-
BPSK是一个基础程序,作为通信系统的开始,提供良好的仿真.相信不用我多说了吧....
BPSK是一个基础程序,作为通信系统的开始,提供良好的仿真.相信不用我多说了吧.-BPSK is a basic program, as a communication system, provide a good simulation. Am not going to say much of the bar.
- 2022-03-03 03:48:03下载
- 积分:1
-
潘爱民一书《com原理与应用》源代码,也可以作为VC学习及COM知识中绝好材料,...
潘爱民一书《com原理与应用》源代码,也可以作为VC学习及COM知识中绝好材料,-Pan Aimin a book, "Theory and Application com" source code, or as a COM VC learning and knowledge excellent material,
- 2022-02-24 15:04:37下载
- 积分:1
-
PID控制是工程实际运用最多的控制器,此程序给出了用MATLAB设计控制器的基本程序,希望对大家有所帮助...
PID控制是工程实际运用最多的控制器,此程序给出了用MATLAB设计控制器的基本程序,希望对大家有所帮助-PID control is the most practical application of engineering controls, this procedure gives the controller design using MATLAB basic procedures, I hope all of you to help
- 2022-05-05 23:25:52下载
- 积分:1
-
分子动力学程序,fortran语言软件包打开
分子动力学程序,fortran语言软件包打开-Molecular dynamics program, fortran language package opened
- 2022-02-20 10:57:04下载
- 积分:1