Kailric
Jack of All Trades
I just spent over an hour trying to debug my code. Last night before I went to bed I made one last change and was goinig to test it today after I got back home from work. As it would be I totally forgot what I had changed and of course the game was crashing on me.
Needless to say it was a debuging hell and it all came down to some kind of infinate loop being created when the computer tride to complete my last equation, which was very simple (a * b / c). Except the first few times the function is called all variables are 0 and you can't divided by 0!! So when the program was told to display the result of (a * b / c) the game would crash.
When did I forget that you can't divide by zero and what flippen ****** would make such a rule to start with and put it into a codeing language? Why not just make it so that if say 6 is dvidided by zero you still have 6. Make sense to me, 6 divided by nothing is still 6!!!
Also, I'll have you know that if you have nothing (0) and you divide that by say 6... you still have nothing and there is no error!
Someone please explain the logic that is why 6/0 = error!
Needless to say it was a debuging hell and it all came down to some kind of infinate loop being created when the computer tride to complete my last equation, which was very simple (a * b / c). Except the first few times the function is called all variables are 0 and you can't divided by 0!! So when the program was told to display the result of (a * b / c) the game would crash.
When did I forget that you can't divide by zero and what flippen ****** would make such a rule to start with and put it into a codeing language? Why not just make it so that if say 6 is dvidided by zero you still have 6. Make sense to me, 6 divided by nothing is still 6!!!
Also, I'll have you know that if you have nothing (0) and you divide that by say 6... you still have nothing and there is no error!
Someone please explain the logic that is why 6/0 = error!