[Error] expected unqualified-id before '[' token
问题:代码:
#include<stdio.h>
#include<string.h>
#define MAX_VERTEX_NUM 20
typedef struct Arccell
{
int adj;
}Arccell, AdjMatrix[MAX_VERTEX_NUM][MAX_VERTEX_NUM];
typedef struct MGraph
{
AdjMatrix arcs;
char[MAX_VERTEX_NUM][MAX_VERTEX_NUM] vexs;
int vexnum, arcnum;
char[10] kind;
}MGraph;
MGraph G;
类似于这种:
#include<stdio.h>
#define x 100
typedef struct t
{
int[10] s;
}y;
int main (void)
{
return 0;
}