摘要: #include <iostream>#include "stdio.h"#include "stdlib.h"#include "cstdlib"//syste()函数需要该头文件; using namespace std; #define OK 1#define ERROR 0#define O 阅读全文
posted @ 2021-12-05 22:20 师大无雨 阅读(910) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<stdlib.h>#define MaxVexNum 50#define MaxInt 32767#define MaxEdgeNum 50//邻接矩阵typedef int VertexType;typedef int EdgeType;type 阅读全文
posted @ 2021-12-05 18:25 师大无雨 阅读(189) 评论(0) 推荐(0)
摘要: //最小生成树之Prim算法 #include <stdio.h> #include <stdlib.h> #define n 6 #define MaxNum 10000 /*定义一个最大整数*/ /*定义邻接矩阵类型*/ typedef int adjmatrix[n + 1][n + 1]; 阅读全文
posted @ 2021-12-05 18:22 师大无雨 阅读(320) 评论(0) 推荐(0)