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