In a simple 1D array:
node *nodes = new node[MAX_NODES];
Uninstall with:
delete [] nodes;
Deletes all nodes selected in the array.
But in this case:
float (*buildingArray)[3] = new float[10][3];
Is this operator the buildingArrayonly array of dimensions of 3 floating point pointers? And this is the line of liberation:
delete[] buildingArray;
Is the aforementioned release an deletearray, but I doubt if it will remove its links?
source
share