数据结构-线性表的一些基础操作 c++代码(二)

2015-07-20 17:07:34 · 作者: · 浏览: 11
if (IsEmpty()) { cout << "Empty list!"; return false; } //令当前指针指向表尾结点的前驱结点 SetEnd(); Prev(); de_item = tail->data; currptr->next = NULL; size--; delete tail; tail = currptr; return true; }