for loops work like this: for(initialization; comparison; step)

for(int i = 0; i++; i < x)
is bad, and will always eval to false