Computer Science Canada

creating variables in a program

Author:  wthef_wc3 [ Wed Mar 02, 2005 11:19 pm ]
Post subject:  creating variables in a program

is there anyway to make the program generate variables (int type)
i.e.
a prg the collects names
so instead of a var for each name the computer makes its own?
any idea has to how this can be done? if at all.

Author:  ssr [ Wed Mar 02, 2005 11:23 pm ]
Post subject: 

what I do is use
code:
array
and
code:
flexible array

done know if it would help, but check out teh tutorial section
plenty of stuff on that Very Happy

Author:  person [ Thu Mar 03, 2005 4:16 pm ]
Post subject: 

dont froget 2D arrays

Author:  Flikerator [ Thu Mar 03, 2005 5:42 pm ]
Post subject: 

person wrote:
dont froget 2D arrays


2D arrays? Like arrays in arrays?

Wouldn't that get confusing...

Author:  person [ Thu Mar 03, 2005 6:15 pm ]
Post subject: 

check the tutorials

Author:  ssr [ Thu Mar 03, 2005 11:04 pm ]
Post subject: 

code:
var lala:array 1..4,1..5 of int

thats a 2d array
it will create an array that contains 4* 5 = 20 spaces
simiarly ther are 3d or 4d arrays
but 5 d and 6d are not comon 8)


: