Hi,
I am creating a 2D array. 1 Array will contain pointers to integer arrays.
My question is how do I clean it up afterwards. Will doing aCode:idArray = new int *[numberOfNodes*2];/*Create array of pointers to the x and y arrays of int*/
for(int i=0;i<numberOfNodes*2;i++) {
idArray[i] = new int[simulationTime*2];/*Create array of range and x position*/
}
delete idArray be enough to clean everything; both the memory allocated for idArray and new int[simulationTime*2]. Thanks
Amish