//Visual Basic 2010 Inleiding Arrays Arrays public class Exercise5Solution { void Main() { int count = 10; int upperbound = (count - 1); int[] values = new int[0]; int index; this.values(index) = (index + 1); Console.WriteLine(((((("element " + (index + 1)) + " ( index ") + index) + " ) : ") + this.values(index))); Console.WriteLine(); int backup = this.values(0); this.values(index) = this.values((index + 1)); this.values(upperbound) = backup; Console.WriteLine(((((("element " + (index + 1)) + " ( index ") + index) + " ) : ") + this.values(index))); Console.ReadLine(); } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2011 - Alle rechten voorbehouden.