Free Pascal Links
Free Pascal
Free Pascal Wiki
Lazarus IDE
Lazarus Forum
forum.lazarus.freepascal.org/index.php?action=forum
Projects Using Lazarus
wiki.freepascal.org/Projects_using_Lazarus
Multi-Dimensional Arrays are two or more arrays that are combined into one. Some examples of a situation where a multi-dimensional array might be used would be a chess board, grid, or a deck of cards.
For this tutorial we will create a multi-dimensional array for a deck of cards.
In a deck of cards, there are 4 suits and 13 ranks per suit.
The suits are (Diamonds, Spades, Hearts, Clubs)
The ranks are (2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, Ace)
We can create a multi-dimensional array from an array of suits and an array of ranks.
Code Download
FPProgT21.zip
Free Pascal
Free Pascal Wiki
Lazarus IDE
Lazarus Forum
forum.lazarus.freepascal.org/index.php?action=forum
Projects Using Lazarus
wiki.freepascal.org/Projects_using_Lazarus