Name: Anonymous 2012-09-27 16:14
I have nested for loops, where I'm going over an array.
#define ARRAYSIZE 10
is the first for
is inside the first for's block.
Now for some reason, the x loop properly terminates at the final value of 9, while the y loop terminates at the value of 10. I.e. x completes 1-8, eight steps, while y does 1-9, nine steps. I could dump the whole shit into pastebin if anyone wants me to do that.
#define ARRAYSIZE 10
for(drawx = 1; drawx<(ARRAYSIZE - 1); ++drawx)is the first for
for(drawy = 1; drawy<(ARRAYSIZE - 1); ++drawy)is inside the first for's block.
Now for some reason, the x loop properly terminates at the final value of 9, while the y loop terminates at the value of 10. I.e. x completes 1-8, eight steps, while y does 1-9, nine steps. I could dump the whole shit into pastebin if anyone wants me to do that.