摘要: 1 #include"stdio.h" 2 #include"malloc.h" 3 typedef int elemtype; 4 typedef struct btnode 5 { 6 elemtype data;/*关键字域*/ 7 struct btnode *lchild,*rchild; 阅读全文
posted @ 2018-07-23 15:33 指尖时光 阅读(1620) 评论(0) 推荐(0)
摘要: 1 /*C语言建立有向图的邻接表及其遍历操作*/ 2 #include"stdio.h" 3 #include"stdlib.h" 4 //图的邻接矩阵储存结构 5 typedef char elemtype; 6 #define maxsize 10 7 #define queuesize 100 阅读全文
posted @ 2018-07-23 15:27 指尖时光 阅读(14257) 评论(0) 推荐(16)
摘要: 1 /*C语言建立有向图的邻接矩阵及其遍历操作*/ 2 #include"stdio.h" 3 #include"stdlib.h" 4 //图的邻接矩阵储存结构 5 typedef char elemtype; 6 #define maxsize 10 7 #define queuesize 100 8 typedef struct{ 9 ele... 阅读全文
posted @ 2018-07-19 11:36 指尖时光 阅读(5184) 评论(1) 推荐(2)