Jump to content
  • Advertisement
Sign in to follow this  
MMO

multi dimensial array's confused me!

This topic is 3226 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!