using System;
class MainClass
{
static void Main()
{
int[][,] jagged = new int[3][,];
jagged[0] = new int[,] { { 1, 2, 3 }, { 4, 5, 6 } };
jagged[1] = new int[,] { { 1, 2 }, { 3, 4 } };
jagged[2] = new int[,] { {1},{ 2 }};
Console.WriteLine(jagged.Length==3);
Console.WriteLine(jagged.Rank == 1);
Console.WriteLine(jagged[1].Length == 4);
Console.WriteLine(jagged[1].Rank == 2);
}
}
0 コメント:
コメントを投稿