Computer Science Canada My Quiz |
Author: | qmanjr5 [ Tue May 18, 2010 10:34 am ] | ||
Post subject: | My Quiz | ||
Here it is, some of my quiz that I made a few months ago and haven't gotten around to finishing or posting on here
|
Author: | chrisbrown [ Tue May 18, 2010 10:47 am ] | ||
Post subject: | RE:My Quiz | ||
It's nice to see some use of procedures rather than a hundreds of lines of mostly cut & paste, but since I see you appreciate the need for good code organization:
Use arrays for both questions and answers, and a for loop in Maintest to improve further (if you plan on doing so). |
Author: | SNIPERDUDE [ Tue May 18, 2010 1:17 pm ] |
Post subject: | RE:My Quiz |
Arrays in for loops can significantly decrease code length. I think this is the first time I've seen someone post a quiz programme with procedures here (at least the Turing forum, I don't really read too much of the rest) |
Author: | qmanjr5 [ Thu May 20, 2010 10:29 am ] | ||
Post subject: | Re: RE:My Quiz | ||
chrisbrown @ Tue May 18, 2010 10:47 am wrote: It's nice to see some use of procedures rather than a hundreds of lines of mostly cut & paste, but since I see you appreciate the need for good code organization:
Use arrays for both questions and answers, and a for loop in Maintest to improve further (if you plan on doing so). Yeah, I can't stand it if I can't organize my code somewhat ![]() And I've yet to learn arrays, I'll go do that right now. |
Author: | qmanjr5 [ Thu May 20, 2010 10:30 am ] |
Post subject: | Re: RE:My Quiz |
SNIPERDUDE @ Tue May 18, 2010 1:17 pm wrote: Arrays in for loops can significantly decrease code length.
I think this is the first time I've seen someone post a quiz programme with procedures here (at least the Turing forum, I don't really read too much of the rest) I've yet to learn a language where I didn't create a quiz, the first thing I make. |
Author: | qmanjr5 [ Thu May 20, 2010 10:42 am ] | ||
Post subject: | Re: RE:My Quiz | ||
chrisbrown @ Tue May 18, 2010 10:47 am wrote: It's nice to see some use of procedures rather than a hundreds of lines of mostly cut & paste, but since I see you appreciate the need for good code organization:
Use arrays for both questions and answers, and a for loop in Maintest to improve further (if you plan on doing so). I read the arrays tutorial... I have a headache now ![]() |