执行结果图: 要求2. 最小生成树 采用邻接矩阵的存储结构,编写prim算法完成最小生成树,输出最小生成树的代价之和 无向图如图所示: #include<iostream> #include<iomanip> using namespace std; #define MVNum 100 //顶点数组的长度 #define MaxInt 32767 //边的权值置为最大值 #define OK 1 typedef char V...