Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ bullshit

Name: Anonymous 2012-09-27 16:14

I have nested for loops, where I'm going over an array.
#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.

Name: Anonymous 2012-09-27 23:30

>>16
Style is optimizing, as standardized styling implies readability.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List