摘要: 如果结构变量是全局变量或为静态变量, 则可对它作初始化赋值。对局部或自动结构变量不能作初始化赋值。 阅读全文
posted @ 2012-05-06 22:17 MFT 阅读(208) 评论(0) 推荐(0) 编辑
摘要: //Floyd算法——C++描述#include "string"#include <iostream>using namespace std;struct MGraph{int arc[10][10]; string vertex[10];int vertexNum;};void Floyd(MGraph G,string path[][100],int dist[][10]){int i,j ,k; for (i=0; i<G.vertexNum; i++) for (j=0; j<G.vertexNum; j++) { dist[i][j]=G 阅读全文
posted @ 2012-05-06 22:12 MFT 阅读(187) 评论(0) 推荐(0) 编辑