i am getting a C2440 compiler error when i build my program but cant figure out how to fix it
Here is the line it comes up on:
if((*Iter)->classID != classID && (*Iter)->getX() == (int)pos.x && (int)(*Iter)->getY == (int)pos.y)
PLEASE HELP!!!
Looks like you're missing () in your getY call:
(int)(*Iter)->getY should probably be (int)(*Iter)->getY()
I guess its this part(*Iter)->getX() == (int)pos.x and perhaps it needs to be (int)(*Iter)->getX() == (int)pos.x. This is just a shot in the dark based on the (int)(*Iter)->getY == (int)pos.ypart of the expression. More code/context would be really helpful though. And as Demian Brecht pointed out, perhaps the () is missing on this part of the expression as well.
加载中,请稍侯......
精彩评论