Sign in to follow this  

multi dimensial array's confused me!

This topic is 3039 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was reading in my programming book the other day and (by the way the language is basic with blitzmax) can I get some examples from some websites? I dont know why I cant get it into my head...

Share this post


Link to post
Share on other sites
Take my words with a grain of salt since I am not a programmer but, you can think of an 2D array as a grid system, a matrice etc.

So you have rows and columns in that array, rather than just rows like you have in normal arrays.

In an array you would have variables indexed as 0,1,2,3,4...n, right? Now, in 2D arrays you are storing data in colums as well, so you'd have to access them by specifying their row and column together like, row 1 column 3 (which would be [0][2]).

I hope that helps a bit.

ps: your arrays can have more dimensions than 2. Like, to store a point in 3D space, you'd have a 3D array maybe.

Share this post


Link to post
Share on other sites

This topic is 3039 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this