一般的做法是:
int **p = new int*[m]; //m行n列型 for (i = 0; i < m; ++i) { p[i] = new int[n]; for (j = 0; j < n; ++j) scanf ("%d",&p[i][j]); }
待补充...