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

Username:   Password: 
 RegisterRegister   
 Need help using pictures in an array on Turing!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MI




PostPosted: Thu May 09, 2013 4:09 am   Post subject: Need help using pictures in an array on Turing!

What is the problem you are having?
I am trying to import 2 different images at once in rows and columns (at random). I need help on how to set up an array for that.


Describe what you have tried to solve this problem
I tried looking at some of the discussions, but I can't get it to work. Any help is appreciated!


Please specify what version of Turing you are using
Turing 4.1.1
Sponsor
Sponsor
Sponsor
sponsor
TW iz Rippin




PostPosted: Thu May 09, 2013 9:59 am   Post subject: RE:Need help using pictures in an array on Turing!

Have you tried a 2d array?
MI




PostPosted: Thu May 09, 2013 8:00 pm   Post subject: RE:Need help using pictures in an array on Turing!

I know I need to use a 2D array, but I don't know how exactly to code it to make it work. Is it possible to show me an example if you can? Thanks
Insectoid




PostPosted: Thu May 09, 2013 8:18 pm   Post subject: RE:Need help using pictures in an array on Turing!

If your image files have good names like image_1.jpg, image_2.jpg, etc., you can use string manipulation to load them in. "image_"+instr(rand())+".jpg", for example. If you can fill an array with random numbers, you can fill it with random pictures.
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: