摘要: 问题:关键还是定义数据结构问题,还有如何把两个集合合并成一个。代码:#include <iostream>#include <cstdlib>using namespace std;#define MAXV 20#define INFINITY 65535typedef struct node{ int from; int to; int weight;}WGraph;typedef struct map{ WGraph arr[MAXV]; int vexs,edges;}*Map;void createGraph(Map &map) //创... 阅读全文
posted @ 2013-05-15 16:23 xshang 阅读(144) 评论(0) 推荐(0) 编辑