2016第章模板.pptVIP

  • 3
  • 0
  • 约 50页
  • 2016-12-04 发布于北京
  • 举报
2016第章模板

10.3 应用实例——顺序表类模板设计 class LinearList { public: LinearList(int LLMaxSize); //构造函数 ~LinearList(); //析构函数 LinearListT Insert(int k,const T x); bool IsEmpty() const; int GetLength() const; bool GetData(int k,T x); bool ModifyData(int k,const T x); int Find(const T x); LinearListT DeleteByIndex(int k, T x); LinearListT DeleteByKey(T x,T y); void OutPut(ostream out) const; private: int length; int MaxSize; T *element; //一维动态数组 }; Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 10.3 应用实例——顺序表类模

文档评论(0)

1亿VIP精品文档

相关文档