VEX 源代码
汇集 VEX 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/*交通图最短路径程序*/ #include "string.h" #include "stdio.h" typedef struct ArcCell{ int adj; /*相邻接的城市序号*/ }ArcCell; /*定义边的类型…
#include "stdio.h" #define max 100 #define n 8 typedef struct derect { int vex,infro ; }sup; void prim(c…
//头文件 #include #include "conio.h" #include "stdlib.h" //预处理,定义一个最大的数字 #define max 32767 //声明两常量,保证能在数组中使用 const int Ve…
#include #include #define inf 2000 #define maxint 5 class Prim //类Prim { protected: unsigned int vex; //城镇个数 …
#include "GMat.h" #include void main(void) { int n,e; coutn>>e; // 输入顶点数及边的数目 Graph g; char vex; int i…
#include #include #include #include #define M 100 typedef struct /…
//--------------------------------------------------------------------------- #include #include #include #include #defi…
/* Prim BY:wangyucao */ //无向图 //初始时u只包含1个点,后一步步将v中的点添加到u中来。用closest[i]=0表示i点在u集合中 //lowcost[…
// ShortestPath.cpp: implementation of the ShortestPath class. // //////////////////////////////////////////////////////////////…