更新 LinearList/main.cpp

This commit is contained in:
e2hang
2025-07-19 10:00:04 +01:00
parent 91e6520894
commit 9f9bc96b25

View File

@@ -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]