Eigenpoll : D wish list : Multi-Dimensional Allocation
int** ptr = new int*[5];
for(int i = 0; i < 5; i++) ptr[i] = new int[5];
Or:
int** ptr = new int[5][5];
If that syntax doesn't work for whatever reason, a sure way to do this would be:
int** ptr = new [5][5]int;
Report this item for cleanup