1 #include "Class_Array.hpp"
3 Class_Array::Class_Array() {
9 Class_Array::Class_Array(uint32_t size,
int value) {
12 array =
new int [size];
13 for(uint32_t i = 0; i < size; ++i)
17 Class_Array::Class_Array(
19 arraySize = other.arraySize;
24 array =
new int [arraySize];
25 for(uint32_t i = 0; i < arraySize; ++i)
26 array[i] = other.array[i];
29 Class_Array::~Class_Array() {
38 int* new_array =
new int[rhs.arraySize];
39 copy(rhs.array,rhs.array+rhs.arraySize,new_array);
44 arraySize = rhs.arraySize;
Customized array definition.