예제 #1
0
 public static void printArray(doubleArray d, int n)
 {
     if (n == 0)
     {
         System.Console.WriteLine("Empty array");
         return;
     }
     for (int i = 0; i < n - 1; i++)
     {
         System.Console.WriteLine(d.getitem(i) + ", ");
     }
     System.Console.WriteLine(d.getitem(n - 1));
 }
예제 #2
0
 static public void printArray(doubleArray a, int n)
 {
     for (int c = 0; c < 3; c++)
     {
         for (int r = 0; r < n; r++)
         {
             Console.Write(a.getitem(r * 3 + c) + " ");
         }
         Console.WriteLine();
     }
 }