LastUpdate: 2011/10/21 03:17:00
戻る/*値を入れながら宣言する例*/ int[] numbers = new int[]{10,20,30}; for (int ix = 0; ix < numbers.Length; ix++) { Console.WriteLine(numbers[ix]); } /*初期値で宣言する例*/ int[] number2 = new int[4]; for (int ix = 0; ix < number2.Length; ix++) { Console.WriteLine(number2[ix]); }