更新 LinearList/main.cpp
This commit is contained in:
@@ -7,7 +7,7 @@ ok int capacity();
|
|||||||
ok bool empty() const;//If empty, return 0;
|
ok bool empty() const;//If empty, return 0;
|
||||||
ok int size() const; //Return Array Size
|
ok int size() const; //Return Array Size
|
||||||
ok virtual T& get(int theIndex) const override; // Return Arr[theIndex]
|
ok virtual T& get(int theIndex) const override; // Return Arr[theIndex]
|
||||||
virtual int indexOf(const T & theElement) const override; //Return the index of "theElement" first appeared
|
ok virtual int indexOf(const T & theElement) const override; //Return the index of "theElement" first appeared
|
||||||
ok virtual void erase(int theIndex) override; //Erase Arr[theIndex]
|
ok virtual void erase(int theIndex) override; //Erase Arr[theIndex]
|
||||||
ok virtual T* changeLength(T * x, int oldlength, int newlength) override;
|
ok virtual T* changeLength(T * x, int oldlength, int newlength) override;
|
||||||
ok virtual void insert(int theIndex, const T & theElement) override; //Insert theElement to place Arr[theIndex]
|
ok virtual void insert(int theIndex, const T & theElement) override; //Insert theElement to place Arr[theIndex]
|
||||||
|
Reference in New Issue
Block a user