Going to try and do my best on explaining arrays (Sorry if it's wrong):
The Basics
My compsci teacher always tells me this: imagine a shelf, x by y, in which you can put items (variables) in the slots.
For example: a 3x3 array would look like this:
Code:
| |
___|___|___
| |
| |
___|___|___
| |
| |
Usually arrays work like regular grid boxes: you define them based on row and then column:
For example, (3,2) would refer to the box on the third row and the second column, usually.
Important things to know:
-In coding, everything starts at 0; if you want to look at the first row and the first column, instead of doing (1,1) you would do (0,0).
Arrays can also be three dimensional, four dimensional, or if you really want, 10 dimensional.
WIP, will get back to it later, but I gotta go and do something and I'm lazy to do a google doc.