OK guys I now want to show you what Multi-dimensional arrays are now Multi-dimensional arrays a really
good feature.
Let me try and explain it in a way you'll understand.
You know like Title games like tile based games such as for example minesweeper.
They're a perfect example of when you could use a multi-dimensional array.
So for example let's do this go char map 20 20.
That's a multi-dimensional array.
So we define a variable that is named map.
It's an array that holds arrays.
So it holds 20 arrays that contain 20 bytes.
So this allows us to do things like this map 0 0 equals 50.
And you notice how we don't have to pass past this.
The reason for that is because all this does is convert it into its numeric type based on the ascii
table which you should definitely look up.
So A I think is decimal sixty five anyway.
So yeah you can do literally do things like this and that is what Multi-dimensional arrays are.
So you know it might be map Y X for coordinates and you would have a Y variable and an x variable that
you would define somewhere up here for example
and you can also define variables like this.
By the way on the same line.
So we define two variables one called y one called X and they're both equal to 30.
So yeah that's Multi-dimensional arrays.
And this can go on forever.
We can even have a third dimension or fourth.
You can keep adding to it.
So that's Multi-dimensional arrays for you very much like arrays apart from that multi-dimensional way
which means they're great for things like coordinate systems you know two of these could be used to
represent x and y values x and y coordinates.
So that's Multi-dimensional arrays for you.