如果你的main函数调用的ListDelete(L,3,e)里,L为LinkList *类型,则函数头int ListDelete(LinkList *&L,int i,ElemType &e)中应该为LinkList *L,不能是LinkList *&L
p=NULL 有问题 你的函数本身有问题