编写一个重载> =和%=运算符的程序。用C ++语言编写完整程序。这个问题与函数重载有关。
class Boss
{
// write your full class in C++ language
public:
bool operator>=(const Boss& other) const;
Boss& operator%=(const Boss& other);
};
bool Boss::operator>=(const Boss& other) const
{
// write your full logic in C++ language
return result;
}
Boss& Boss::operator%=(const Boss& other)
{
// write your full logic in C++ language
return *this;
}