没有与这些操作数匹配的 "!=" 运算符:void != enum
出错代码
Map *m_map;
void setmap(int row, int col, int val);
void Map::setmap(int row,int col,int val)
{
Map_Arr[row][col] = val;
}
enum{ map_null, map_frame, map_block };
bool Manage::_ismove(Point const * tempPoint, int rowOff, int colOff)
{
for (int i = 0; i < Block_num; ++i)
{
if (m_map->setmap((tempPoint + i)->row + rowOff, (tempPoint + i)->col + colOff) != map_null)
{
return false;
}
return true;
}
}