Ok in class to do we had to do the following and I keep on running into the same problem:
Code:
class Array
{
public:
Array(int size); //constructor - sets capacity to size
void print(); //prints the contents of the Array
void add(int value); //adds element to end of Array
~Array(); //destructor
private:
int length; //number of elements
int capacity;