This project will involve arrays, but it will also be practice with classes and memory handling. You will be implementin a simple version of the vector container. Your version will work only on integers and doesn't use templates. You don't need iterators either.
The class will have a pointer to an array of integers as private data. There may be others that you need as well. There will be two constructors. The default (or no-argument) constructor will create the initial array using a constant default size. The other constructor takes one argument that is the initial size of the array.
You will ned a print method and a method to get the length of the array. You will also need a method that adds new numbers to the array. Note that when the array gets full, you will have to make it bigger. This will involve the use of the new operator and array copying.
You main() function should show the use of both constructors and how integers are added to the array. It must force the extension of the array at some point. Use the print and length nethods to show the change in length.
You should tunr in a listing of the program along with sample output. Staple the cover sheet to that.
Think about how you will do this so you can ask questions.
ASK if you have any questions.