摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 #define MAX 10 // 从校园中取10个点 5 #define INTMAX 66666 6 //Floyd算法数据 7 int L[MAX+1][MAX+1]; // 存最短路径长 阅读全文
posted @ 2020-11-10 20:41 daZ311 阅读(372) 评论(0) 推荐(1)
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 5 typedef struct SqList 6 { 7 int *elem;//声明了一个名为elem的长度不确定的数组,也叫“动态数组” 8 int length;//记录当前顺序表的长度 9 int l 阅读全文
posted @ 2020-11-03 19:37 daZ311 阅读(85) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 #define TRUE 1 5 #define FALSE 0 6 #define ElemType int 7 #define KeyType int 8 9 10 /* 二叉排序树的节点结构定义 */ 1 阅读全文
posted @ 2020-11-03 19:35 daZ311 阅读(125) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 3 4 #define MAXBIT 100 5 #define MAXVALUE 10000 6 #define MAXLEAF 30//叶节点数目 7 #define MAXNODE MAXLEAF*2-1 //节点数目 8 9 10 /*编码结构体 阅读全文
posted @ 2020-10-18 10:20 daZ311 阅读(59) 评论(0) 推荐(0)