QB64 Community

Programs (.BAS), Tutorials and Libraries ($INCLUDE, DECLARE LIBRARY, ...) => Tutorials => Topic started by: TerryRitchie on March 26, 2013, 09:58:53 PM

Title: Ritchie's Array Tutorial (Updated)
Post by: TerryRitchie on March 26, 2013, 09:58:53 PM
I recently saw a request that an array tutorial be created. I have noticed that many new to programming, especially my students, have a very difficult time grasping the concept of arrays. To this end I wrote this tutorial as a beginners guide to their structure, use and function.

The tutorial covers the basics:

- Creating one, two, three and four dimensional arrays
- Creating one and two dimensional arrays using TYPEs
- Resizing arrays (REDIM) in real time
- Array index boundaries (LBOUND, UBOUND)
- OPTION BASE compiler directive
- $STATIC and $DYNAMIC metacommands

The included PDF document includes code examples and graphics to illustrate concepts. The downloadable .ZIP file below contains the PDF tutorial and all source code in .BAS format ready to execute.

https://dl.dropbox.com/u/416997/ArrayTutorial.zip  (665KB)