Thank you for your response. I was deserving of the criticism as I did jump to conclusions.
But mostly, what was probably the most insignificant thing in your post, put in parenthesis, saves my day. It's a wonder how two darned stray semicolons got in my code, and even greater a wonder how I was oblivious to it after a few hours of staring at my code. I can't thank you enough for your help to this amateur programmer.
User Profile
Collapse
-
If statements executing regardless of false conditions
Hi, I am writing a simulator for a game. I have been stuck at a couple if statements executing regardless of false conditions every time the flow of execution reaches it. Here's the format with psuedo-variables:
Then, I have another one with almost the exact variables. I am writing this in BlueJ and used the debugger to...Code:if(timeA - timeB >= 3 + count * 3) { x += y; count++; }
No activity results to display
Show More
Leave a comment: