Data Structures

A data structure is a programming construct that contains data while your game is running.

Constants

A constant can hold one piece of data. Once set, the data never changes.

Variables

A variable is the most basic kind of data structure. It can hold one piece of data of one data type.

Arrays

An array is a data structure that is similar to a variable and has a number of elements, or "slots". While a variable is like a box that can hold one value, an array is like having multiple boxes to hold a piece of information in each slot. As a rule of thumb, an array must be of the same data type. You can not combine e.g. integers and strings in a single array.

Types (or Strucs)

Types can store multiple pieces of data of different data types.

Dim

Dim is short for dimension and is used to declare arrays and types.

Related Pages

Links

Categories: Computer Science : Data : Programming
page_revision: 14, last_edited: 1237838574|%e %b %Y, %H:%M %Z (%O ago)