正在加载图片...
Programming in C++ SPECIFICATION FILE ARRAY-BASED LIST (list. h const int MAX LENGTH= 50 typedef int Item Type class List // declares a class data type public: public member functions List( ∥ constructor bool IsEmpty( const boo sfUll const int Length(const l/returns length of list void Insert( Item Type item); void Delete( Item Type item); boo IsPresent( Item Type item)const; void SelSort(: void Print() private: ∥ private data members length //number of values currently stored Item Type data[MAX LENGTH; 88 // SPECIFICATION FILE ARRAY-BASED LIST ( list.h ) const int MAX_LENGTH = 50 ; typedef int ItemType ; class List // declares a class data type { public : // public member functions List ( ) ; // constructor bool IsEmpty ( ) const ; bool IsFull ( ) const ; int Length ( ) const ; // returns length of list void Insert ( ItemType item ) ; void Delete ( ItemType item ) ; bool IsPresent( ItemType item ) const ; void SelSort ( ); void Print ( ) ; private : // private data members int length ; // number of values currently stored ItemType data[MAX_LENGTH] ; } ;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有