当然可以.
Status InitList_Sq(SqList &L)
{
L.elem=(ElemType *)malloc(LIST_INIT_SIZE*sizeof(ElemType));
if(!L.elem)exit(OVERFLOW);
L.length=0; //你在这里改成输入L.lenrth不就行了.
L.listsize=LIST_INIT_SIZE;
return OK;
Status InitList_Sq(SqList &L)
{
L.elem=(ElemType *)malloc(LIST_INIT_SIZE*sizeof(ElemType));
if(!L.elem)exit(OVERFLOW);
L.length=0; //你在这里改成输入L.lenrth不就行了.
L.listsize=LIST_INIT_SIZE;
return OK;
Fighting~~~~~~~~