[0][1x][2][3x][4][5x]
and
[0x][1][2x][3][4x][5]
*x is one to be cleared
This post has been edited by RckStr: 11 April 2010 - 10:04 AM




Posted 11 April 2010 - 10:03 AM
This post has been edited by RckStr: 11 April 2010 - 10:04 AM
Posted 11 April 2010 - 10:27 AM
RckStr, on 11 April 2010 - 09:03 AM, said:
This post has been edited by gda2004: 11 April 2010 - 10:28 AM
Posted 11 April 2010 - 10:28 AM
Posted 11 April 2010 - 10:36 AM
PsychoCoder, on 11 April 2010 - 09:28 AM, said:
Posted 11 April 2010 - 10:38 AM
Posted 11 April 2010 - 10:40 AM
PsychoCoder, on 11 April 2010 - 09:38 AM, said:
This post has been edited by gda2004: 11 April 2010 - 10:42 AM
Posted 11 April 2010 - 11:40 AM
Posted 11 April 2010 - 12:43 PM
Sub Main()
Dim NamesOfPeople() As String = {"Daniel", "Radcliffe", "Emma", "Watson", "Rupert", "Grint"}
Dim half As Integer = (NamesOfPeople.Length / 2)
Dim FirstNames(half-1) As String
Dim LastNames(half-1) As String
For x As Integer = 1 To half
FirstNames(x - 1) = NamesOfPeople(x + (x - 2)) '0 2 4
LastNames(x - 1) = NamesOfPeople(x + (x - 1)) '1 3 5
Next
'Show result
For x As Integer = 1 To half
Console.WriteLine("First: " & FirstNames(x - 1) & ", Last: " & LastNames(x - 1))
Next
End Sub
This post has been edited by Ethryx: 11 April 2010 - 12:45 PM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
