[求助]急~附值成功但没调用!
#define maxvex 100#define max 32767
struct vertex
{int num;
char data;
}vertex;
typedef struct graph
{struct vertex vexs[maxvex];
int edges[maxvex][maxvex];
}adjmax;
............
............
main()
{adjmax g;
int n,e,v0;
int dist[maxvex],path[maxvex],s[maxvex];
printf("input the No. of vertex(n) and the No. of edges(e):");
scanf("%d,%d",&n,&e);
g=creategraph(n,e);
printf("input the headspring is: ");
scanf("%d",&v0);
shortpath(g.edges[ ][ ],dist[ ],path[ ],g.vexs[ ].num,v0);
printpath(g.edges[ ][ ],path[ ],s[ ],g.vexs[ ],v0);
}
前面g赋值成功了,但是后面的g调用失败了,请问该怎么改啊?