Computer Science Canada Some quick help... |
Author: | HKYPLAYA4LIFE [ Wed Dec 24, 2003 12:11 am ] | ||
Post subject: | Some quick help... | ||
I started writing this program really quick and then I began getting errors. Please help me out quick thanks. (sorry about the messy from by the way)
|
Author: | DanShadow [ Wed Dec 24, 2003 4:00 pm ] | ||
Post subject: | |||
Lol, such a messed program. All your problems lie in this part of the code:
else if is wrong, it is actually elsif The variables func and one havent even been declared Fix up these things, and it should fall into place. Oh, also when dividing, its easier to put / instead of div |
Author: | Thuged_Out_G [ Wed Dec 24, 2003 9:29 pm ] |
Post subject: | |
DanShadow wrote: The variables func and one havent even been declared yes they have |
Author: | DanShadow [ Thu Dec 25, 2003 10:56 am ] |
Post subject: | |
Hmmmm...so they are, sorry about that. I guess Turing was drunk when I ran the program....skipped the var statements. Woops, well sorry. (And thanks for the correction ) |
Author: | Thuged_Out_G [ Thu Dec 25, 2003 3:33 pm ] |
Post subject: | |
i get the same error, and i dont know why but try declaring all variables at the beginning of the program, and structure your program a bit better...it makes it much easier to read and follow HINT:hit f2 in turing after your done the program |
Author: | Boarder16 [ Mon Dec 29, 2003 11:59 pm ] |
Post subject: | |
try using procedures too, i knwo usaid sorry for the form bein messy but its soo messy!!! lol, ahhhahhh i stopped reading it half way because its soo messy, or its just me and i'm a neat freak... |