#include #include "ArrayT.h" ArrayT::ArrayT() { size = 0; capacity = 10; data = new int [capacity]; return; } ArrayT::ArrayT(const ArrayT & rhs){ size_t i; // copy size over size = rhs.size; // copy capacity capacity = rhs.capacity; // copy the data. // allocate memory. // copy the data to the new memory. data = new int [capacity]; for(i=0;i 0) { size--; } return; }