2.3線性表的鏈式表示和實現

算法2.8:單鏈表中插入一個節點算法 下面是書中的僞代碼:數組 Status ListInsert_L(LinkList &L, int i, ElemType e) { // 在帶頭結點的單鏈線性表L的第i個元素以前插入元素e LinkList p,s; p = L; int j = 0; while (p && j < i-1) { // 尋找第i-1個結點
相關文章
相關標籤/搜索