Computer Science Canada Drawing a Periodic Table |
Author: | midnite13 [ Wed May 17, 2006 8:36 am ] |
Post subject: | Drawing a Periodic Table |
Hello all, I was wondering if I could get some advice on drawing a periodic table. I WOULD import it from a jpeg file, except I have to incorporate mousewhere into my program. Is there an easy and efficient way to do this so that I don't have a gigantic if-structure? Thanks |
Author: | jamonathin [ Wed May 17, 2006 9:37 am ] | ||
Post subject: | |||
Well, here's an example, assuming you know where to take it from here.
Now there will still be some if statements needed (because not all spots are used for elements), but just assign somethign to that empty spot and in your if statement, just check if that spot if empty or not (or if it is of greater value than the array) |