您好,我在 XO.h 中的 Eclipse 中使用了 c++
class Master
{
private:
char board[3][3];
public:
Master();
void change_board(int choice[1],char color);
void start_play(Maximizer,Minimizer);
void end(char winner);
char winner();
void play(Maximizer,Minimizer);
};
class Maximizer{};
class Minimizer{};
在 Xo.cpp
void Master::start_play(Maximizer x ,Minimizer o)
{play(x,o);
}
但是 Eclipse 会生成一个“原型为void Master::start_play(Maximizer, Minimizer)' does not match any in class Master
”的错误,请帮助我