#include #include using namespace std; struct smartArray { int *data; int size; }; void initialize(smartArray &a) { a.data = NULL; a.size = 0; } void addElement(smartArray &a, int newElement) { int *newData = new int[a.size+1]; int i; for (i=0;i