递归调用:链表中删除元素不断链现象

删除的代码: void del(NodeList &L, ElemType x){     NodeList p;     if(L!=NULL)         if(L->data==x){             p = L;             L=L->next;             free(p);             cout<<L<<endl;             
相关文章
相关标签/搜索