|
Post by bigbass on Dec 16, 2014 18:38:50 GMT 1
Hey bitvast I am posting this from my phone So test this Joe Multidimensional initialization (Thanks Peter) DECLARE two_dim[3][3] = { { 1, 1}, {2, 2}, {3, 3} } TYPE int PRINT two_dim[0][1] PRINT two_dim[1][1] PRINT two_dim[2][1] sourceforge.net/p/baconproto/wiki/C%20to%20BaCon/
|
|
|
Post by bitvast on Dec 16, 2014 20:02:09 GMT 1
Hi Joe, Sometimes I think I must be dyslexic, I see the problem now. But still, does BaCon follow the C rules for initializing multi-dimensional arrays? DECLARE multi[2][2][2] = { \ {{1,2},{3,4}}, \ {{5,6},{7,8}}, \ }
PRINT multi[1][0][1] 6 No problem. Move along please, nothing to see here.
|
|
|
Post by vovchik on Dec 16, 2014 20:57:55 GMT 1
Dear Joe, Glad to see you back.... With kind regards, vovchik
|
|