摘要: 源程序: #include <stdio.h>#include <stdlib.h> #define vnum 100 typedef char VerTexType;typedef struct arcnode{ int adjvex; //下一条边的顶点编号 struct arcnode *ne 阅读全文
posted @ 2019-12-04 16:02 bobo哥 阅读(643) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#include <stdlib.h>#include <malloc.h>#include <string.h> #define MAX 100#define isLetter(a) ((((a)>='a')&&((a)<='z')) || (((a) 阅读全文
posted @ 2019-12-04 11:21 bobo哥 阅读(937) 评论(0) 推荐(0)
摘要: 源程序: /*无向带权图的邻接矩阵表示法*/#include <stdio.h>#define vnum 20const int MAX_INT=0;typedef struct gp{ char vexs[vnum]; /*顶点信息*/ int arcs[vnum][vnum]; /*邻接矩阵*/ 阅读全文
posted @ 2019-12-04 10:39 bobo哥 阅读(3243) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#include <stdlib.h> const int vnum=20; typedef struct gp{ char vexs[vnum]; int arcs[vnum][vnum]; int vexnum,arcnum;}Graph; //输入 阅读全文
posted @ 2019-12-04 10:05 bobo哥 阅读(1095) 评论(0) 推荐(0)