Forum Moderators: coopster
in my code AB&C are all stored in seperate variables and I want to change a forth varriable based on which combo of ABC exsists. Do I just have to have 7 if statments that have 3 things with && or is there away to use a case statment? Or is there another easier way?
Also isn't there a mathmatical term for these kind of problem? or the graph used with it? anyone know what it is?
4x4x4 = 64
Regarding the term you may be referring to -- it may be what is known as bitwise operations, but you are already pushing the boundaries for most operating systems at 64. 32 might be safe, but 64 is pushing things.
I did get mine to work yesterday by sticking them into an array then bringing them back out into a sting and then inserting the sting into the database. it wasn't what I had in mind but simpler and it worked so I guess that is all that maters.
There are two different type of combination things like these
one more like a combination lock or slot machine.
the kind like mine which is like this problem:
There are 5 people;Bill, Jane,Sue,Tom,and David. They have 2 cars each seating 5 people. How many different groups are possible for 1 car.
Btw anyone here love mindbbenders as a kid? I use to have a book of them where youd have problems and like having to match person with their color bike and it would give you clues to deduce which bike went with what person?
Probably the most famoue one of these would be the one J.K. Rowling did in Harry Potter.