| 发表于:2007-03-06 10:51:065楼 得分:0 |
jone_fox()的声明是错误的 正确:the length of the first dimension is 2 the length of the second dimension is 1 the length of the first dimension is 3 int[,,] array3d = new int[2,1,3] { { { 1, 2, 3 } }, { { 4, 5, 6 } } }; console.writeline( "the elements of the 3 dimensional array are : {0} {1} {2} {3} {4} {5}. ", array3d[0,0,0], array3d[0,0,1], array3d[0,0,2], array3d[1,0,0], array3d[1,0,1], array3d[1,0,2]); 请大家放心,上面的代码已运行通过!!! | | |
|