This project is due in a few hours (midnight tonight)
the only remaining problem is that this loop will not execute:
int x = (size - sizearray - index);
for (int g = 0; g < x; g++)
{
cout << "in the loop" << endl;
newarray[g + index + sizearray] = temparray[g - sizearray + index];
cout << newarray[g+index+sizearray] << temparray[g-sizearray+index];
}
cout << endl;
cout << endl;
please forgive all of the debugging statements.
the program used dynamic arrays, the function this loop is in inserts an array of given size at a given index bumping the values of the origional array up. this loop is supposed to set the last few values of the array...
any help would be much appreciated