Upd: 统一格式并且移除了对于右值的要求。

This commit is contained in:
DarkSharpness_XzY
2023-10-20 22:06:34 +08:00
parent 572073ac6a
commit f884cf0073

View File

@ -22,10 +22,9 @@ class int2048 {
public:
// 构造函数
int2048();
int2048(long long x);
int2048(const std::string &s);
int2048(long long);
int2048(const std::string &);
int2048(const int2048 &);
int2048(int2048 &&);
// 以下给定函数的形式参数类型仅供参考,可自行选择使用常量引用或者不使用引用
// 如果需要,可以自行增加其他所需的函数
@ -34,7 +33,7 @@ public:
// ===================================
// 读入一个大整数
void read(const std::string &s);
void read(const std::string &);
// 输出储存的大整数
void print();
@ -53,7 +52,6 @@ public:
// ===================================
int2048 &operator=(const int2048 &);
int2048 &operator=(int2048 &&);
int2048 &operator+=(const int2048 &);
friend int2048 operator+(int2048, const int2048 &);