求各位大神帮小妹我找找问题啦!谢谢
#include<stdio.h>#include <stdlib.h>
#define MAXVEX 50
typedef char VertexType;
typedef struct EdgeNode
{
int adjvex; //存储该顶点对应的下标
struct EdgeNode *next;
}EdgeNode;
typedef struct VertexNode
{
VertexType date; //存储顶点信息
EdgeNode *firstedge; //边表头结点
}VertexNode,AdjList[MAXVEX];
typedef struct GraghAdjList
{
AdjList adjList;
int numNodes,numEdges; //图中当前顶点数和边数
}GraghAdjList;
void GreateALGragh(GraghAdjList *G){
int i,j,k;
EdgeNode *s1,*s2;
G=(struct GraghAdjList*)malloc(sizeof(struct GraghAdjList));
printf("结点数(n),边数(e):");
scanf("%d,%d",&G->numNodes,&G->numEdges);
for(i=0;i<G->numNodes;i++)
{
printf("第%d个结点信息:",i+1);
scanf("%c",&G->adjList[i].date);
G->adjList[i].firstedge=NULL;
}
}
void main()
{
GraghAdjList *g;
GreateALGragh(g);
}