class CChessGame
{
CChessItem m_CurCell;//CCHessItem是一个已经定义的类
BOOL AiSearchLeft_Right();//我想把
BOOL SetCurCell( int x, int y, int count );
}
BOOL CChessGame::SetCurCell( int x, int y, int count )
{
m_CurCell.m_ix=int((x-m_iBoardLeft)/m_iCellSize)+1;
return TRUE;
}
BOOL CChessGame::AiSearchLeft_Right()
{
//我想在这个函数中调用SetCurCell中的m_CurCell.m_ix,比如说修改m_CurCell.m_ix,使得m_CurCell.m_ix=m_CurCell.m_ix+1,怎么写呢?
}
...全文
4585打赏收藏
类成员函数之间相互调用的问题
class CChessGame { CChessItem m_CurCell;//CCHessItem是一个已经定义的类 BOOL AiSearchLeft_Right();//我想把 BOOL SetCurCell( int x, int y, int count ); } BOOL CChessGame::SetCurCell( int x, int y, int count ) { m_CurCell.m_ix=int((x-m_iBoardLeft)/m_iCellSize)+1; r