Page 1 of 1

How to create a 2 d array?

Posted: Wed Jul 24, 2013 12:14 am
by nnnnff
How to create a 2 d array?
Such as the:s[12][12].help me.

Re: How to create a 2 d array?

Posted: Wed Jul 24, 2013 5:56 am
by brandonb
How to create a 2 d array?
Such as the:s[12][12]
flowcode doesn't support these, but a 2d array is like a checker board which is an array of arrays, each row is an individual array, could do this with math and have one lut table or array of 144 and referance them with math like
if you wanted to find [2],[4] the code would be ....position = (12*row)+char
to find the 'Y' below it would be this in math (12*2)+4
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,Y,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
does that make sense, if i'm off on this one please correct me

Re: How to create a 2 d array?

Posted: Wed Jul 24, 2013 6:47 am
by medelec35
Hi nnnnff
This same topic was discussed here:
http://fwww.matrixmultimedia.com/mmforu ... 60&#p35960