按列取出二维数组
int[] arr2 = new int[row];
for (int i = 0; i < col; i++) { // 列数
for (int j = 0; j < row; j++) {
arr2[j] = arr[j][i];
}
}
标签:int,按列,++,二维,arr2,数组
From: https://www.cnblogs.com/aclq/p/17805177.html
int[] arr2 = new int[row];
for (int i = 0; i < col; i++) { // 列数
for (int j = 0; j < row; j++) {
arr2[j] = arr[j][i];
}
}
标签:int,按列,++,二维,arr2,数组
From: https://www.cnblogs.com/aclq/p/17805177.html