|

楼主 |
发表于 2014-10-20 16:14:31
|
显示全部楼层
随手7:- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication7
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[, ,] intArray3 = new int[3,4,5];
- int[,] intArray2;
- intArray2=new int[2,3];
- intArray2[0,0]=23;
- int k=1;
- Console.WriteLine(intArray2[0,0]);
- for (int i = 0; i < intArray2.GetLength(0); ++i)
- {
- for (int j = 0; i < intArray2.GetLength(1); ++j)
- {
- //intArray2[i, j] = ++k;
- intArray2[1,2] = 9989;
- }
- }
-
- foreach (int l in intArray2)
- {
- Console.WriteLine("{0,5}",l);
- }
-
- Console.ReadLine();
- }
- }
- }
复制代码
|
|