for(int x_index = 0, x_index < 20, x_index++)
{
for(int y_index = 0, y_index < 20, y_index++)
{
validation_grid[x_index][y_index] = 0;
}
}
This code snippet won't compile. The compiler says there's a parse error before ')' on the first line. Also, the following code snippet won't compile:
int diff;
int whichframe;
diff = (GetTickCount() - main_start_time) % 900;
if(diff >= 0 && diff < 150) whichframe = 0;
if(diff >= 150 && diff < 300) whichframe = 20;
if(diff >= 300 && diff < 450) whichframe = 40;
if(diff >= 450 && diff < 600) whichframe = 60;
if(diff >= 600 && diff < 750) whichframe = 40;
if(diff >= 750 && diff < 900) whichframe = 20;
It's telling me that I never declared "diff" or "whichframe", which is absolute lie because it's right there on the first two lines. Why does my compiler suck? Or, more appropriately, why do *I* suck?
[edited by - utwo on February 23, 2003 5:53:16 PM]
[edited by - utwo on February 23, 2003 5:53:46 PM]
[edited by - utwo on February 23, 2003 5:55:02 PM]
---signature---" Actually, at the time, I didn't give a damn about the FoxNews issue... just that you would come swooping in with your Super Mith cape flapping behind you and debunk it just because it didn't happen in your living room." - InnocuousFox