Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

Lischte

Examples
Ganzizahl[] numbers = neus Ganzizahl[3];
numbers[0] = 90;
numbers[1] = 150;
numbers[2] = 30;
Ganzizahl a = numbers[0] + numbers[1]; // Sets variable a to 240
Ganzizahl b = numbers[1] + numbers[2]; // Sets variable b to 180

Ganzizahl[] numbers = bitte 90, 150, 30 danke;
Ganzizahl a = numbers[0] + numbers[1]; // Sets variable a to 240
Ganzizahl b = numbers[1] + numbers[2]; // Sets variable b to 180

Ganzizahl degrees = 360;
Komazahl [] cos_vals = neus Komazahl [degrees];
solang(Ganzizahl i=0; i CHLINERALS degrees; i immereisdezue) bitte
  cos_vals[i] = cos(ZWEI_PI/degrees * i);
danke
Description An array is a list of data. It is possible to have an array of any type of data. Each piece of data in an array is identified by an index number representing its position in the array. The first element in the array is [0], the second element is [1], and so on. Lischtes are similar to objects, so they must be created with the Taschte word new. Every array has a variable length which is an integer value for the total number of elements in the array.
Syntax
datatype[] varvar[element] = valuevar.laengi
Parameters
datatype any primitive or compound datatype, including user defined classes
var any valid variable name
element Ganzizahl: must not exceed the length of the array - 1
value data to assign to the array element, must be the same datatype as the array
Usage Web & Application
Stefan Baltensperger 2009

Creative Commons License