#include
#include
#define ROW 5
#define COL 5
int main(void)
{
int i, j;
int **arr = NULL;
arr = (int **) malloc (sizeof(int *));
for (i=0; i
arr[i] = (int *) malloc (COL * sizeof(int));
}
printf("请输入5X5矩阵:\n");
for (i=0; i
for (j=0; j
scanf("%d", &arr[i][j]);
}
}
for (i=0; i
for (j=0; j
printf("%5d", arr[i][j]);
}
printf("\n");
}
}