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

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




PostPosted: Wed May 05, 2004 4:12 pm   Post subject: arrays

i have 520 similar pictures in a program that i am making, how do i use the array command?
Sponsor
Sponsor
Sponsor
sponsor
Paul




PostPosted: Wed May 05, 2004 6:30 pm   Post subject: (No subject)

u name the pictures something like:
pic1.jpg
pic2.jpg
pic3.jpg
etc... u get the point then u do this
code:

var pic: array 1..520 of int
var temp: string
for a: 1..520
temp:= "pic"+intstr(a)+".jpg"
pic(a):= Pic.FileNew (temp)
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  [ 2 Posts ]
Jump to:   


Style:  
Search: