|
-
May 25th, 2000, 03:17 AM
#1
Thread Starter
New Member
This has been frustrating me as I can only think of a very long winded way of doing this:
(I'm sure my frustration has clouded an abvious and short way!)
I have an array, and in' each one is a picture. at the moment I have a command button that randomly scrolls through the images in any order, but it can repeat images it has already been to.
I would like to know if there is any way of selecting an array object, and then disguarding it so it cannot be viewed again (untill the show random button in re-pressed, or the app re-started)
much thanks for any suggestions
haz
-
May 25th, 2000, 03:28 AM
#2
New Member
Try setting it equal to a second array, as you display each photo delete the array(current photo) from the group. Once all the photos have been displayed, reset your temp array to the original array and rerandomize.
-
May 25th, 2000, 03:30 AM
#3
transcendental analytic
Are you working with UDT's? or what do you mean with an array conatining picutures? You should place a boolean shown-flag into the udt and make it true whenever you press the command button. Then reset the flags if you press randomize
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|