无
无人的世界
Unregistered / Unconfirmed
GUEST, unregistred user!
SListInsert(SList &L,int i,ElemType e)
{int j;
if(! L.elem ||i<1||i>L.length ) return ERROR;
for(j=L.length;j>i;j--)
L.elem[j]=L.elem[j-1];
L.elem[j-1]=e;
L.elem[L.length+1]='/0';
L.length++;
return TRUE;
}
{int j;
if(! L.elem ||i<1||i>L.length ) return ERROR;
for(j=L.length;j>i;j--)
L.elem[j]=L.elem[j-1];
L.elem[j-1]=e;
L.elem[L.length+1]='/0';
L.length++;
return TRUE;
}