Assignment 02: Array An Array ADT that is based on a dynamic array.

Assignment 02: Array An Array ADT that is based on a dynamic array. The type allows the user to specify a length and optional start indexât instantiation. It also allows the user to resize the array. The operator[] will be overloaded to support standard array-like functionality. Stipulations 1. Internal storage must be of type T* 2. Make sure the length values are valid. 3. Make sure the user never goes out of bounds. If they do, throw an exception. 4. The user should be able to set the length of the array at any time to any valid length, including lengths that are smaller than the current length. This may result in the loss of data but should be allowed.

Leave a Reply

Your email address will not be published.