Arrays hold lists of variables of the same data type. When there are large lists of variables and data, it is easier to contain the data in an array than have large amounts of separate variables to hold the data. Think of an array as a placeholder for piece of data.
The syntax of the array is:
Name_Of_Array : array[range] of datatype;
For example if we wanted to create an array that will hold five human first names the syntax will look like this:
FirstName : array[1..5] of string;
All code can be downloaded for free at http://www.schoolfreeware.com
Thank you Lazurus
CrazypumaX 1 month ago
Thanks so much, you explained it so much better than my teacher! They should just have you put on the projector in class :p
FruityLoopero91 1 month ago
you are a better teacher than my teacher at school :P
poakerz 1 month ago
Very good, bro, very good!
Obliviatora 1 month ago
is there a video on parellel arrays?
MrDdDom 3 months ago
awesome ! thx !
Lopaata 4 months ago
very useful & inspirational!!! i LOVE it!!
sumbunnyonutube 5 months ago
Thanks man! Awesome tutorial. Is there any way to initialize an array without using assignments? I want to define an array much like this:
p: array[0..39] of byte = {1, 1, 1, 0, 0, 1, 0.. } etc.
Basically I want to have a psuedo 2D array for a graphic in my program. It's stored as one dimensional, but gets parsed with for loops.
caHarkness 7 months ago
these videos are so helpful, thank you so much
joanni10 10 months ago
THANKS ALOOOTTT!!!
lagnam22 1 year ago