int[, ,] a = new int[2, 3, 4]{ { { 1,2,3,4},{ 5,6,7,8},{ 9,10,11,12}},{ { 13,14,15,16},{ 17,18,19,10},{ 21,22,23,24}}}; foreach (int m in a) { Console.Write(" " + m); } int l = a.Length; Console.WriteLine("\n数组总字符数 " + l); Console.ReadLine();
本文共 403 字,大约阅读时间需要 1 分钟。
int[, ,] a = new int[2, 3, 4]{ { { 1,2,3,4},{ 5,6,7,8},{ 9,10,11,12}},{ { 13,14,15,16},{ 17,18,19,10},{ 21,22,23,24}}}; foreach (int m in a) { Console.Write(" " + m); } int l = a.Length; Console.WriteLine("\n数组总字符数 " + l); Console.ReadLine();
转载于:https://www.cnblogs.com/nwj-0613/p/4719920.html