int iNumRows = <number of rows>;
int iNumCols = <number of columns>;
int iNumElements = iNumRows * iNumCols;
int* aaiArray = new int*[iNumRows];
aaiArray[0] = new int[iNumElements];
memset(aaiArray,0,iNumElements*sizeof(int));
for (iRow = 1; iRow < iNumRows; iRow++)
{
aaiArray[iRow] = &aaiArray[0][iNumCols*iRow];
}
// deallocation
delete[] aaiArray[0];
delete[] aaiArray;