forums

TNT Basic Forums > Programming Q&A
2d arrays?
< Last Thread     Next Thread >
Author
Thread        Post A Reply

07-19-2004 18:28

Posted by:
madscientist

Location:
n.ireland

Click Here to Email madscientist   Find more posts by madscientist

is TNT capable of multidimensional arrays?

i have a grid of rectangles and need to be able to set information about each one individually.

i cant seem to find any evidence that it can, but its not that hard a programming concept.

07-19-2004 18:31

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

Yep.

Yes, you can:

int 2dArray[10,10]
int 3dArray[10,10,10]

07-19-2004 18:56

Posted by:
madscientist

Location:
n.ireland

Click Here to Email madscientist   Find more posts by madscientist

ahhh!
that would be exactly what im looking for!
thanks

07-19-2004 23:21

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

multiarrays are very useful, although not absolutely vital: you can always transform an array into a multiarray and viceversa if you know the dimensions: that's what I discovered when I didn't know that TNT could handle multiarrays and I had to find a workaround...

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.