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

Username:   Password: 
 RegisterRegister   
 Array question
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Naveg




PostPosted: Tue Feb 15, 2005 8:40 pm   Post subject: Array question

Is it possible for the upper array to be a variable?

And also, can you initialize only the first few of an array with the init command?

For example

code:
var itemList:array 1..(5+extras) of string:=init("Bread","Juice","Cookies","Milk","Cheese")
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: Tue Feb 15, 2005 8:44 pm   Post subject: (No subject)

for your first question, your thinking of flexible arrays, and for your second queestion, there isnt.. you'd have to do list(1)=blah blah list(2)= blah blah and so on.. read my arrays tutorial in the tutorials section, it'l be a great help to you
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  [ 2 Posts ]
Jump to:   


Style:  
Search: