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

Username:   Password: 
 RegisterRegister   
 calling up an array
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
numba1




PostPosted: Fri Jun 10, 2005 8:06 pm   Post subject: calling up an array

the user inputs their selection into an array(1-5 items)
now how do i display the contents of the array to the user
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Fri Jun 10, 2005 8:20 pm   Post subject: (No subject)

If you know how to use Turing's "for" loop and "put", then you already know the answer to that question.
MysticVegeta




PostPosted: Fri Jun 10, 2005 8:51 pm   Post subject: (No subject)

code:
var arr : array 1..5 of string
for s : 1..5
get arr(s)
put arr(s)
end for
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  [ 3 Posts ]
Jump to:   


Style:  
Search: