Computer Science Canada colouring squares |
Author: | marshymell0 [ Wed Mar 23, 2005 10:06 pm ] | ||
Post subject: | colouring squares | ||
hey, I found this neat program in ur free source section at http://www.compsci.ca/v2/viewtopic.php?t=2579 I'm planning to use it for a score board, but I'm not sure how, this is what I have
![]() |
Author: | ssr [ Wed Mar 23, 2005 10:17 pm ] |
Post subject: | |
of course you can I would make an array save up all the answers and do something like if answer = correct then answer (i):=1 else answer:= 0 end if now according to the answers, make a loop adn fill out each square. ![]() |
Author: | marshymell0 [ Wed Mar 23, 2005 10:19 pm ] |
Post subject: | |
um.....I never learned arrays ![]() at the end of my quiz, I ahve a score which has added up, so it'll be a number/int. |
Author: | ssr [ Wed Mar 23, 2005 10:30 pm ] |
Post subject: | |
oh so u dont wanna show liek which one is right, anyway this is easier now, u see how many rights there are and do a for loop drawfill in each square until the loop reaches the # of right answers I will show u an example soon btw read teh tutorial and learn array its really useful ![]() |
Author: | ssr [ Wed Mar 23, 2005 10:48 pm ] | ||
Post subject: | |||
This is a really long code, u should be able to shorten this code anyway this is the basic concept ![]() |