The following code:

for (int i = 0; i < 12; i++)

{

x = 0;

y = 0;

if (i >= 4 && i < 8)

{

x = 100;

}

if (i >= 8 )

{

x = 200;

}

}

if I step through it with F10 it works correctly, but if I don't, it
doesn't, and at the end of the run x is still 0.  Is this a problem with
VC++ or a problem with my code.  I'm trying to figure out a formula for
displaying sprites in 3 columns of four rows each.  Does anyone know a
formula for that that doesn't involve the above method?


[Non-text portions of this message have been removed]

Reply via email to