Computer Science Canada using arrays |
Author: | YasserSalama [ Mon May 12, 2008 5:16 pm ] |
Post subject: | using arrays |
hey guys, what i am doing is creating a multiple choice test. i have decided to use arrays for this. what i have going on right now is that i have an array for the questions, 0 to 14, and an array for the correct answers also 0 to 14. What i want is to have the choices to be in an array, but how do i make it display 4 at a time for just one index? if more info is needed i'll be glad to put it out.. i know this description isn't really great so just ask! |
Author: | Tony [ Mon May 12, 2008 6:42 pm ] |
Post subject: | RE:using arrays |
you can either use records, so that each index holds a custom type. Or your array can be 4 times as big, and you just keep in mind that index increments by four. |
Author: | YasserSalama [ Mon May 12, 2008 7:05 pm ] |
Post subject: | Re: using arrays |
thanks for the help! i am not that good so how would i go about making the array four times as big and then using the increments of 4? wouldn't it just skip 3 and output the fourth? |
Author: | I Smell Death [ Fri May 16, 2008 9:12 am ] | ||
Post subject: | Re: using arrays | ||
tony said that you could do this
|
Author: | riveryu [ Fri May 16, 2008 7:11 pm ] |
Post subject: | RE:using arrays |
er "I Smell Death", I think you gave too much of a hint here... |