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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -