Programming in BASIC on the Color Computer - Chapter 26 - Managing Numbers
ogStevieStrow
Chapter 26 on programming in BASIC on the Color Computer is called Managing Numbers, and it introduces us to array variables.
An array variable allows you to create subsets of data within a particular variable name.
If you need to store 10 numbers into variables, for example, instead of assigning 10 different variable names to each number, you can DIM and ARRAY of 10 and store 10 different numbers as SUBSETS of that array.
For example, to store 10 numbers into an array A, you would start by
DIM A(10)
to allocate 10 subset locations for variable A You can then READ in that data, or inject the values into each subset variable any way you see fit, including FOR... NEXT loops, READ, etc.
One area where this was helpful for me in the past was dealing with managing, sorting, and storing high score tables for video games.
If you'd like to make a donation use this link: https://youtube.streamlabs.com/ogsteviestrow If you tip during a live stream, your name will appear on screen, thanks!
Thanks for watching, don't forget to like, comment, and subscribe!
Merchandise: http://ogsteviestrow.com/merchandise YouTube: https://youtube.com/ogsteviestrow Facebook: https://www.facebook.com/ogsteviestrow/ Twitter: https://twitter.com/ogsteviestrow Instagram: https://www.instagram.com/ogsteviestrow/ Website: http://ogsteviestrow.com
Pixel art and logos created by Joel M. Adams: https://www.instagram.com/artistjoelmadams/
OG Theme Song by the Gimp of Hallowed Ground Records: https://www.reverbnation.com/gordy669
Original Music by Fran Mann and Side Seat Driver used with permission: https://www.reverbnation.com/franmann
Music from the album Pac-Man Fever used with permission: http://pacmanfevervault.com/ ... https://www.youtube.com/watch?v=qARkaAAGgfA
302724020 Bytes