1. 静态分配
#define MaxSize 10
typedef struct{
ElemType data[MaxSize];
int length;
}SqList
2. 动态分配
#define InitSize 10
typedef struct{
ElemType* data;
int MaxSize;
int length;
}SqList
标签:10,typedef,顺序,struct,int,ElemType,MaxSize
From: https://www.cnblogs.com/alexmisko/p/17026135.html