按列遍历,并输出到一维数组即可.
void covert(int a[M][N], b[M*N]){ int i,j,n; for(i = n = 0; i < N; i++) { for(j = 0; j < M; j ++) { b[n++] = a[j][i]; } }}