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

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




PostPosted: Tue Nov 16, 2004 8:59 pm   Post subject: Flexible Arrays

I came accross this today, and it looks very handy, this would allow me to keep my array declarations out of the code section.

How do you give an array more slots (idk the technical term)

say it is 1..0 of int, how would I make that 1..20 of int?
Sponsor
Sponsor
Sponsor
sponsor
Mr. Glib




PostPosted: Tue Nov 16, 2004 9:22 pm   Post subject: (No subject)

Hypes,

I could point out that some of the other recent threads in this forum have dealt with flexible array issues. It would be wise my friend to have a gander...but since you asked so nicey nicey!

code:

var yams:flexible array 1..0 of int

new yams, 2000
Cervantes




PostPosted: Wed Nov 17, 2004 5:09 pm   Post subject: (No subject)

I just wrote this tutorial. Maybe you don't need it to know how to remove an element of an array, but it's good knowledge. Anyways, I largely wrote the tut in response to your question.
HyperFlexed




PostPosted: Fri Nov 19, 2004 10:42 am   Post subject: (No subject)

Nice.

And Glib, I did search, but I always ended up in threads with programs that were too hard to disect.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: