#include<stdio.h>
#define MaxSize 10//定义最大长度
typedef struct{
int data[MaxSize]; //用静态的“数组”存放数据元素
int length; //顺序表中的当前长度
}SqList; //顺序表的类型定义
#include<stdio.h>
#define MaxSize 10 //顺序表的初始长度
typedef struct{
ElemType *data; //指示动态分配数组的指针
int MaxSize; //顺序表的最大容量
int length; //顺序表中的当前长度
}SqList; //顺序表的类型定义(动态分配方式)