This commit is contained in:
e2hang
2025-07-20 11:22:32 +08:00
parent ce3f273487
commit b4d8a78c47
4 changed files with 239 additions and 1 deletions

View File

@@ -11,7 +11,6 @@ public:
virtual T& get(int theIndex) const = 0; // Return Arr[theIndex]
virtual int indexOf(const T& theElement) const = 0; //Return the index of "theElement" first appeared
virtual void erase(int theIndex) = 0; //Erase Arr[theIndex]
virtual T* changeLength(T* x, int oldlength, int newlength) = 0;
virtual void insert(int theIndex, const T& theElement) = 0; //Insert theElement to place Arr[theIndex]
virtual void output() const = 0; //cout
};