Hey, I need a function that virtually increase the size of an array, by creating a new array with the size of the old array plus the default array size and copying the content of the old array to the new array, finally returning the new array. This is a function that receives an old array, the size of the old array, and the default size.
so what I pictured is something like this..
int * ResizeArray(int array[], int size, int SIZE){
int * array2;
array2 = new int ;
for(int i = 0; i < size + SIZE; i++)
array2 = array;
return array2;
}
Well.. I'm still new at this C++ programing stuff and am not sure about anything..
Any hint or little help would be appreciated. thanks :$