//Visual Basic 2008/2010 Meerdimensionale Arrays Arrays public class Exercise2Solution { void Main() { Console.WriteLine("Row Count ?"); int rowCount = Console.ReadLine(); Console.WriteLine("Column Count ?"); int columnCount = Console.ReadLine(); int upperboundFirstDimension = (rowCount - 1); int upperboundSecondDimension = (columnCount - 1); int[] matrix = new int[0]; Console.WriteLine("Start Value ?"); int startValue = Console.ReadLine(); Console.WriteLine(); int rowIndex; int columnIndex; int value; value = startValue; this.matrix(rowIndex, columnIndex) = value; this.value += new System.EventHandler(1); Console.Write((this.matrix(rowIndex, columnIndex) + " ")); Console.WriteLine(); Console.WriteLine(); int backup = upperboundFirstDimension; upperboundFirstDimension = upperboundSecondDimension; upperboundSecondDimension = backup; int[] transpone = new int[0]; this.transpone(rowIndex, columnIndex) = this.matrix(columnIndex, rowIndex); Console.Write((this.transpone(rowIndex, columnIndex) + " ")); Console.WriteLine(); Console.ReadLine(); } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2010 - Alle rechten voorbehouden.