-
俄罗斯方块
俄罗斯方块是款非常流行的小游戏,通过七个方块的旋转和位移,构成各种变幻莫测的图案。而游戏者也在不断的叠加和消除中找到乐趣。
从编程的角度来说,这个游戏混合了键盘事件,定时器,随机数,鼠标事件(如果没有菜单,这个也不是必需的),数据结构比较清晰,算法比较灵活,图形是比较简单的矩形,所以很适合刚学习完某种语言的语法又想做点什么的初学者。
- 2022-03-22 04:36:54下载
- 积分:1
-
某个著名博士关于如何查找文献,和学术论文发表的ppt
某个著名博士关于如何查找文献,和学术论文发表的ppt-a famous literature on how to identify and academic papers published ppt
- 2022-10-24 02:00:04下载
- 积分:1
-
busbox 1
busbox 1.0-busbox 1.0, the first full edition of busybox.
- 2022-02-12 20:34:12下载
- 积分:1
-
java写的simplepong,能够实现所有基本功能,不妨下下来学习一下!
java写的simplepong,能够实现所有基本功能,不妨下下来学习一下!-simplepong wrote to the realization of all the basic functions, it may be down under study how!
- 2022-10-22 04:50:03下载
- 积分: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
-
simple hierarchical management and inventory management for software used for th...
简单的分层管理的库存管理及查询软件,供大家交流用。-simple hierarchical management and inventory management for software used for the exchange.
- 2022-07-22 21:35:01下载
- 积分:1
-
计算机软件与计算机电气保护能成为一个好的主机连接…
微机机电保护软件,通过和电脑主机连接可以很好的检测机电设备-Electrical protection of computer software and computer can be a good host connectivity testing electrical and mechanical equipment
- 2022-01-23 11:05:02下载
- 积分:1
-
DMA VHDL 设计IP核经常遇到大数据交换要用DMA,本IP核来自开源组织,免费开源版...
DMA VHDL 设计IP核经常遇到大数据交换要用DMA,本IP核来自开源组织,免费开源版-DMA VHDL design IP core often encountered in large data exchange to use DMA, the IP core from the open-source organizations, free open source version
- 2023-07-05 04:35:03下载
- 积分:1
-
pb开发的教师管理系统,供大家学习
pb开发的教师管理系统,供大家学习-pb development of the management system for teachers, for everyone to learn
- 2023-07-08 05:00:03下载
- 积分:1
-
assoeted源码,可以给刚开始学习的人下载借鉴。
assoeted源码,可以给刚开始学习的人下载借鉴。-assorted源码,可以给刚开始学习的人下载借鉴。
- 2022-03-24 06:09:39下载
- 积分:1