#include using namespace std; class dynamicarray { int Size; int *Array; public: dynamicarray (int s=0) { Size = s; if (Size > 0) Array = new int[Size]; }; ~dynamicarray () { if (Size > 0) { cout << Size << " elements deleted." << endl; delete[] Array; } }; void append (int value) { int *tmparray = new int[Size+1]; for (int i=0; i