c++ - How come only the first y and x are undeclared? -
c++ - How come only the first y and x are undeclared? -
error c2143: syntax error : missing ';' before ')' error c2143: syntax error : missing ';' before '/' error c2065: 'y' : undeclared identifier error c2065: 'y' : undeclared identifier error c2143: syntax error : missing ';' before ')' error c2143: syntax error : missing ';' before '/' error c2065: 'x' : undeclared identifier error c2065: 'x' : undeclared identifier error c2065: 'x' : undeclared identifier error c2065: 'y' : undeclared identifier error c2065: 'x' : undeclared identifier error c2065: 'y' : undeclared identifier
here's code :
for (int y = scan->rcwindow.bottom - scan->rcwindow.top) / 4; y < ((scan->rcwindow.bottom - scan->rcwindow.top) - (scan->rcwindow.bottom - scan->rcwindow.top)) / 3.5; y++; (int x = scan->rcwindow.right - scan->rcwindow.left) / 4; x < ((scan->rcwindow.right - scan->rcwindow.left) - (scan->rcwindow.right - scan->rcwindow.right)) / 4; x++;
what meant scan window ignoring sides, in making window smaller scanning middle part(the part around cursor). i'm pretty much less beginner. editing code format.
you have syntax error, due missing parentheses. it's not clear intended, can't right:
for (int y = scan->rcwindow.bottom - scan->rcwindow.top) / 4; ^ ^
if match close parenthesis corresponding open parenthesis, / 4;
hanging. perhaps wanted:
for (int y = (scan->rcwindow.bottom - scan->rcwindow.top) / 4; y < ((scan->rcwindow.bottom - scan->rcwindow.top) - (scan->rcwindow.bottom - scan->rcwindow.top)) / 3.5; y++);
c++
Comments
Post a Comment