q = &(L.elem[i-1]); // q为插入位置 for (p = &(L.elem[L.length-1]); p>=q; --p) *(p+1) = *p;// 那这样不就把最后一个元素给覆盖了吗 *q = e; ++L.length; return OK; }
相关分类