正在加载图片...
8.返回链表L中结点e的直接前驱结点 NODE*Prior Elem (lInK LIST L, NODE*e) NODE*p if ( L. head->next==e)return NULL; ∥检测第一个结点 for(p=L head; p->next&&p->next! =e; p=p->next) if(p->next==e)return p esle return NULL 请单鼠标左键换页!8. 返回链表L中结点e的直接前驱结点 NODE *PriorElem(LINK_LIST L,NODE* e) { NODE *p; if (L.head->next==e) return NULL; //检测第一个结点 for (p=L.head;p->next&&p->next!=e;p=p->next); if (p->next==e) return p; esle return NULL; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有