L是什么,结构体吗,L.elem又是啥 还有L.length,typedef struct{int *elem;int length;int listsize;}SqList;int InitList_Sq(SqList &L){L.elem=(ElemType*)malloc(LIST_INIT_SIZE*sizeof(ElemType));if(!L.elem) return ERROR;L.length=0;L.listsize=LIST_I
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/28 22:14:29
![L是什么,结构体吗,L.elem又是啥 还有L.length,typedef struct{int *elem;int length;int listsize;}SqList;int InitList_Sq(SqList &L){L.elem=(ElemType*)malloc(LIST_INIT_SIZE*sizeof(ElemType));if(!L.elem) return ERROR;L.length=0;L.listsize=LIST_I](/uploads/image/z/10135621-37-1.jpg?t=L%E6%98%AF%E4%BB%80%E4%B9%88%2C%E7%BB%93%E6%9E%84%E4%BD%93%E5%90%97%2CL.elem%E5%8F%88%E6%98%AF%E5%95%A5+%E8%BF%98%E6%9C%89L.length%2Ctypedef+struct%7Bint+%2Aelem%3Bint+length%3Bint+listsize%3B%7DSqList%3Bint+InitList_Sq%28SqList+%26L%29%7BL.elem%3D%28ElemType%2A%29malloc%28LIST_INIT_SIZE%2Asizeof%28ElemType%29%29%3Bif%28%21L.elem%29+return+ERROR%3BL.length%3D0%3BL.listsize%3DLIST_I)
L是什么,结构体吗,L.elem又是啥 还有L.length,typedef struct{int *elem;int length;int listsize;}SqList;int InitList_Sq(SqList &L){L.elem=(ElemType*)malloc(LIST_INIT_SIZE*sizeof(ElemType));if(!L.elem) return ERROR;L.length=0;L.listsize=LIST_I
L是什么,结构体吗,L.elem又是啥 还有L.length,typedef struct
{
int *elem;
int length;
int listsize;
}SqList;
int InitList_Sq(SqList &L)
{
L.elem=(ElemType*)malloc(LIST_INIT_SIZE*sizeof(ElemType));
if(!L.elem)
return ERROR;
L.length=0;
L.listsize=LIST_INIT_SIZE;
return OK;
}我不懂L是啥
L是什么,结构体吗,L.elem又是啥 还有L.length,typedef struct{int *elem;int length;int listsize;}SqList;int InitList_Sq(SqList &L){L.elem=(ElemType*)malloc(LIST_INIT_SIZE*sizeof(ElemType));if(!L.elem) return ERROR;L.length=0;L.listsize=LIST_I
在这里是一个结构体变量.