Multiple values on an array

Pages: 12
Well yes I know that much, but like the requirement says. A dynamic array by the type bool is needed in order to mark the positions of the words that are taken. So in other words if the user inputs 4 and 5, and 4 and 5 are already taken, the bool array is there to let the user know that 4 and 5 are already taken and does not exist anymore. Atleast that's how I understand it.
closed account (48T7M4Gy)
ok, I think I get the picture. Too easy.

All you need to do is create a new array, call it "placeTaken" which is a bool or int array the same size as game. Then when a and b are selected as in my program just make placeTaken[a] = true or 1 whatever assuming you initialise placeTaken with 0's. You can use that array to make the various tests.

I hope that's what you're looking for.
I think I get it, else I guess i'll reappear in a new thread - haha.
Thanks a bounch, you have saved my life!
closed account (48T7M4Gy)
:)
Topic archived. No new replies allowed.
Pages: 12