I need to dynamically generate a multi_demension array. I know
how to do it with calloc() and free(), Could you tell me how to
do it with new() and delete()?

Thanks

//Code:

// Memory allocation
int *** pSomething

pSomething = (int ***)calloc(n1, sizeof(int **));
for(int i=0; i<n1; i++) {
pSomething[i] = (int **)calloc(n1, sizeof(int **));
for(int j=0; j<n2; j++) {
pSomething[i][j] = (int *)calloc(n2, sizeof(int *));
}
}

//free

for(int i=0; i<n1; i++) {
for(int j=0; j<n2; j++) {
free pSomeThing[i][j];
}
free pSomeThing[i];
}
free pSomeThing;

//End of the code