トピック
MikeATD corb1477

Array Importance?

What, exactly, is the importance of arrays?
1そうだね
プレイ済み
返信[1]
親投稿
Aaron Krondelo
Uhm, they are very important.
0そうだね
プレイ済み
返信[2]
親投稿
Autz sonic-HD8765
Store a lot of data without need to declare different variables for each data. And since all the data will be under one array, is more convenient to access them. Saves space and also commonly used on loops like FOR loop.
1そうだね
プレイ済み
返信[3]
親投稿
MikeATD corb1477
Okay. Thanks.
0そうだね
プレイ済み
返信[4]
親投稿
#yolo Luigirules12345
@autz a question i've always had is exactly wat is the difference between a variable and an array and how wud i access data it stores,btw i know how 2 set 1 up tho
0そうだね
プレイ済み
返信[5]
親投稿
Autz sonic-HD8765
@#yolo A variable is, well, a value that can change. While an array is like a set of variables, where each position is like an individual variable. On some cases you will need more than 10 variables, so instead of doing this: Vl1 Vl2 Vl3 ... You use arrays like this: DIM Vl[3] And to access or setting data on it, you use the index [] from 0 to the size of the array: Vl[2]=5
2そうだね
プレイ済み
返信[6]
親投稿
#yolo(2) Luigirules23456
thx, that really helped!
1そうだね
未プレイ