-
编程创建一个Box类,在其中定义三个变量表示一个立方体的长、宽和高,再定义一个方法setDemo对这三个变量进行初始化,然后定义一个方法求立方体的体积。创建一个...
编程创建一个Box类,在其中定义三个变量表示一个立方体的长、宽和高,再定义一个方法setDemo对这三个变量进行初始化,然后定义一个方法求立方体的体积。创建一个对象,求给定尺寸的立方体的体积。对这个内容的编程代码及结果实现-Programming to create a Box class, in which the three variables that define a cube of length, width and height, and then define a method setDemo these three variables initialized, and then define a method, to calculate the volume of the cube. Create an object, seeking for a given volume of the cube size. The content of this programming code and the results achieved
- 2022-08-22 19:27:02下载
- 积分: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
-
self
用于安装/卸载的自解压文件
- 2023-02-27 08:40:03下载
- 积分:1
-
EWZ的CAD软件!安装可立即使用!
CAD 中ewz软件!
装上马上可以用!-ewz CAD software! Install can be used immediately!
- 2023-06-24 00:20:05下载
- 积分:1
-
用于分形图像的生长
用于分形图像的生长-fractal images for the growth
- 2022-08-26 07:11:23下载
- 积分:1
-
Saipan example program source code, a good source code examples, please see the...
塞班例子程序源代码,不错的源代码例子,请大家查看,希望有所帮助。-Saipan example program source code, a good source code examples, please see the hope that help.
- 2022-05-06 05:22:42下载
- 积分:1
-
关于水体指数的经典文章,我好不容易才弄到的,很有价值哦...
关于水体指数的经典文章,我好不容易才弄到的,很有价值哦-On the water body index classic article, I managed to get the, oh, great value
- 2022-01-31 08:08:09下载
- 积分:1
-
InSAR是一种极具潜力的新型空间大地测量方法,但它也有其固有的限制,特别是受到大气层延迟(对流层延迟、电离层延迟等)、卫星轨道误差、地表状况和时变去相关性等影...
InSAR是一种极具潜力的新型空间大地测量方法,但它也有其固有的限制,特别是受到大气层延迟(对流层延迟、电离层延迟等)、卫星轨道误差、地表状况和时变去相关性等影响,很容易导致InSAR图像解释错误,而InSAR数据本身无法解决所存在的上述问题。而GPS可以精密定位,可以较为精确地确定电离层、对流层参数,是当前应用最广泛的一种空间大地测量手段。-InSAR is a potential new space geodetic methods, but it also has its inherent limitations. in particular by the delay in the atmosphere (troposphere delay, ionospheric delay, etc.), satellite orbit errors, Surface conditions and time-varying correlation to the impact of such very easily lead to wrong interpretation of InSAR image, InSAR data and by itself can not solve the above problems. GPS precision positioning can be more accurately determine the ionosphere, troposphere parameters, is the most widely used as a means of space geodesy.
- 2022-05-24 00:38:35下载
- 积分:1
-
介绍了软件工程的方法,用ROSE选课系统指导步骤...要用ROSE打开,并不完全,要自己修正,给你们当做指导....
介绍了软件工程的方法,用ROSE选课系统指导步骤...要用ROSE打开,并不完全,要自己修正,给你们当做指导.-introduced a software engineering method, the guidance system ROSE Course steps ... to use ROSE opened, is not entirely to their own amendments, as a guide to you.
- 2023-08-29 07:55:03下载
- 积分:1
-
OFDM系统的信道估计和误差率的计算。
OFDM信道估计算法仿真,统计无线OFDM系统信道估计算法的误码率。-The channel estimation of OFDM system and error rate caculation.
- 2022-03-19 12:58:24下载
- 积分:1