int InsList(LinkList L, int i, ElemType e)
{ Node *pre, *s;
if (i<1) return ERROR;
pre=( (i==1) ? L : Get(L,i-1) ); // 找插入位置的前驱
if (pre==NULL)
{ printf(";插入位置不合理!";); return ERROR; }
s=(Node *)malloc(sizeof(Node));
s->data=e; s->next=pre->next; pre->next=s;
return OK;
}