- 1
- 0
- 约1.04万字
- 约 11页
- 2020-08-07 发布于天津
- 举报
#i nclude stdio.h
#i nclude stdlib.h
#in elude coni o.h
#in cludestri ng.h
#defi ne MaxSize 100
#defi ne VISITED 1
#defi ne NOTVISITED 0
景点个数最大50*/
景点个数最大50*/ 定义路径为无穷大*/ 目前景点个数*/
#defi ne MaxViewNum 50 /*
#defi ne MaxRoad 1000 /*
#defi ne N 16 /* typedef struct
{
char name[30]; /* 景点名称 */
char number[10]; /* 景点代号 */
char introduce[200]; /* 景点介绍 */
}Elemtype;
typedef struct
{
int num; /* 景点编号*/
Elemtype date; /* 景点信息 */
}View; /* 定义景点*/
typedef struct
{
View view[MaxViewNum]; /* 存放顶点的一维数组,数组第零单元没有用上 */
unsigned int length[MaxViewNum][MaxViewNum]; /* 存放路径长度 */
int m,n;
}MGraph;
MGraph MGr; /* 全
原创力文档

文档评论(0)