Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 creating variables in a program
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wthef_wc3




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
ssr




PostPosted: Wed Mar 02, 2005 11:23 pm   Post subject: (No 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
person




PostPosted: Thu Mar 03, 2005 4:16 pm   Post subject: (No subject)

dont froget 2D arrays
Flikerator




PostPosted: Thu Mar 03, 2005 5:42 pm   Post subject: (No subject)

person wrote:
dont froget 2D arrays


2D arrays? Like arrays in arrays?

Wouldn't that get confusing...
person




PostPosted: Thu Mar 03, 2005 6:15 pm   Post subject: (No subject)

check the tutorials
ssr




PostPosted: Thu Mar 03, 2005 11:04 pm   Post subject: (No 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)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: