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[0][0, 0] == 1);
Console.WriteLine(jagged[0][1, 2] == 6);
Console.WriteLine(jagged[1][0, 1] == 2);
Console.WriteLine(jagged[1][1, 1] == 4);
Console.WriteLine(jagged[2][1,0] == 2);
}
}
0 コメント:
コメントを投稿