[计算机软件及应用]数据结构 飞机换乘问题.docVIP

  • 1
  • 0
  • 约2.01万字
  • 约 35页
  • 2017-12-14 发布于湖北
  • 举报

[计算机软件及应用]数据结构 飞机换乘问题.doc

[计算机软件及应用]数据结构 飞机换乘问题

#includeiostream.h //#includeExtLGraph.h //#includeExtMGraph.h #includeManager.h void main() { int weight=3; int noEdge=1000; /* Test of MGraph MGraphint mGraph(7,noEdge); int matrix[7][7]={0,1,0,0,0,0,1, 0,0,0,1,1,0,0, 0,0,0,0,0,0,0, 0,0,0,0,0,0,0, 0,0,0,0,0,0,0, 0,0,0,0,0,1,1, 0,0,0,0,0,0,0}; for(int i=0;i7;i++) { for(int j=0;j7;j++) coutmatrix[i][j] ; coutendl; } mGraph.BuildforTest(*matrix,7,7); mGraph.OutputforTest(cout); //mGraph.DeleteforTest(); mGraph.OutputforTest(cout); showResultCode(mGraph.Insert(3,1,weight)); showR

文档评论(0)

1亿VIP精品文档

相关文档