#define MAXSIZE 100
typedef int ElemType;
  1. 定义最大容量为100

  2. 给 int类型取别名为ElemType

//定义一个顺序表
typedef struct {
	ElemType data[MAXSIZE];
	int length;
} SeqList;
//初始化线性表
void initList(SeqList *L) {
	L->length = 0;
}

文章作者: Administrator
版权声明: 本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 叶秋の小窝
Code c
喜欢就支持一下吧