I would like to create a for-loop or even a nested type of for-loops (with if statements, when necessary) similar to the following which I’ve written in VB6
[FONT=Arial][SIZE=2]Dim myAscii As String[/SIZE][/FONT]
[FONT=Arial][SIZE=2]myAscii = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890`~!@#$%^&*()-=_+[]{}\|;:'" & Chr(34) & "/?.>,< "[/SIZE][/FONT]
[FONT=Arial][SIZE=2]Dim a, b, c, d, i, j, k As Integer[/SIZE][/FONT]
[FONT=Arial][SIZE=2]Dim state(0 To 9) As Integer 'state, indicates the column turn for a next recursion, incrementally up to no. 16 for each loop[/SIZE][/FONT]
[FONT=Arial][SIZE=2]a = 1[/SIZE][/FONT]
[FONT=Arial][SIZE=2]b = 1[/SIZE][/FONT]
[FONT=Arial][SIZE=2]c = 1[/SIZE][/FONT]
[FONT=Arial][SIZE=2]d = 1[/SIZE][/FONT]
[FONT=Arial][SIZE=2]Open "c:\GC.txt" For Output As #1[/SIZE][/FONT]
[FONT=Arial][SIZE=2]For i = 0 To 65535[/SIZE][/FONT]
[FONT=Arial][SIZE=2]Print #1, a + i & " | " & a & "x" & b + k & "x" & c & "x" & d & " | " & myAscii & "|" & "cc"[/SIZE][/FONT]
[FONT=Arial][SIZE=2]state(0) = 1[/SIZE][/FONT]
[FONT=Arial][SIZE=2]Next i[/SIZE][/FONT]
This is the file I need to read from in aim of reconstructing characters for an output string, based on a certain matrix combination i.e. the first four columns denoting the char address(es).
But I’m aiming for implementing the recursive counts for each column of the generated matrix similar or exact to the following (just the first four columns or the addresses)
1x1x1x1
1x2x1x1
1x3x1x1
…
1x16x1x1
1x1x2x1
1x1x2x2
1x1x2x3
…
1x1x2x16
1x1x1x2
1x1x2x2
…
1x1x16x2
1x2x2x1
1x2x3x1
…
1x2x16x1
1x2x2x1
1x2x2x2
…
1x2x2x16
1x and so on
2x1x1x1
with similar configuration
…
3x1x1x1
…
16x1x1x1
with similar configuration
...
16x16x16x16
Where the maximum limit of the count is 16 for each fulfilled combinations column. The total number of unique combinations is 65536 rows.
Any help on this for constructing the matrix I would appreciate,
please give me tips, algorithmic formulation or a code to implement this:)


Sign In
Create Account


Back to top









