Merge remote-tracking branch 'origin/main'
This commit is contained in:
@ -25,6 +25,7 @@ public:
|
||||
int2048(long long x);
|
||||
int2048(const std::string &s);
|
||||
int2048(const int2048 &);
|
||||
int2048(int2048 &&);
|
||||
|
||||
// 以下给定函数的形式参数类型仅供参考,可自行选择使用常量引用或者不使用引用
|
||||
// 如果需要,可以自行增加其他所需的函数
|
||||
@ -52,11 +53,12 @@ public:
|
||||
// ===================================
|
||||
|
||||
int2048 &operator=(const int2048 &);
|
||||
int2048 &operator=(int2048 &&);
|
||||
|
||||
int2048 &operator+=(int2048);
|
||||
int2048 &operator+=(const int2048 &);
|
||||
friend int2048 operator+(int2048, const int2048 &);
|
||||
|
||||
int2048 &operator-=(int2048);
|
||||
int2048 &operator-=(const int2048 &);
|
||||
friend int2048 operator-(int2048, const int2048 &);
|
||||
|
||||
int2048 &operator*=(const int2048 &);
|
||||
|
Reference in New Issue
Block a user