双向循环链表的基本操作.docVIP

  • 12
  • 0
  • 约5.03千字
  • 约 8页
  • 2019-08-20 发布于江西
  • 举报
PAGE 双向循环链表的基本操作 #includeiostream using namespace std; struct DblNode { int data; DblNode *rLink; DblNode*lLink; }; class DblList { public: DblList(); ~DblList(); bool IsEmpty(); int GetLength(); void Output(); void ClearList(); bool HeadInsert(int e); bool TailInsert(int e); bool Insert(int pos,int e); int Locate(int e); bool DeleteNode(int pos,inte); bool Insert(int i,const int x,int d); bool SetData(int pos,int e); DblNode *GetNode(int pos); void Meun(); private: DblNode *first; DblNode *last; int Length; }; #includeDblList.h Dbl

文档评论(0)

1亿VIP精品文档

相关文档