日期:2014-05-18 浏览次数:20828 次
int[,] arrayChuZhi = { { 0, 0, 0, 0, 0, 0 }, { 0, 1, 0, 1, 0, 0 }, { 1, 0, 1, 0, 1, 0 }, { 1, 1, 1, 0, 1, 0 }, { 0, 0, 1, 0, 1, 0 } }; int[][] arrayYuanShiXin = new int[arrayChuZhi.GetLength(0)][]; for (int i = 0; i < arrayChuZhi.GetLength(0); i++) { int[] temp_array=new int[arrayChuZhi.GetLength(1)]; for(int j=0;j<arrayChuZhi.GetLength(1);j++) { temp_array[j]= arrayChuZhi[i, j]; } arrayYuanShiXin[i] = temp_array; }