c - Can't compile code. Keep saying Error on bracket -
bool increase(void) { num = num + 1; num2 = 123; num1 = 100; if(num2 > 1000) { return(1); // endcheck } else(num2 > num1) { resetincrement(); return(0); // continue check batch } }
i keep getting error message on else bracket. says no semicolon found sem colons there. not sure why. maybe can see mistake here?
you cannot provide second conditional else
itself, use:
else if (num2 > num1)
Comments
Post a Comment