这是在严蔚敏的数据结构(C语言版)上面的一个例子 我看不懂啊。。。
#define LIST_INIT_SIZE 100
#DEFINE LISTINCREMENT
typedef struct{
Elemtype *elem;
int length;
int listsize;
}SqList;
Status Inlilist_Sq(sqlist &L){
//构造一个空的线性表。
L.elem=(Elemtype *)malloc(100*sizeof(ElemType));
if(!L,elem)exit(OVERFLOW);
L.length=0;
L.listzise=100;
return OK;
}//Initlist_Sq
我不懂
L.lenght=0;
llistsize =100;
这两行的意思 书上说是 空表长度为0 初始存储容量 但是为什么要做这步呢