From f884cf00739982ac22f2ecb07b58572b9553ee0b Mon Sep 17 00:00:00 2001 From: DarkSharpness_XzY <2040703891@qq.com> Date: Fri, 20 Oct 2023 22:06:34 +0800 Subject: [PATCH] =?UTF-8?q?Upd:=20=E7=BB=9F=E4=B8=80=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=B9=B6=E4=B8=94=E7=A7=BB=E9=99=A4=E4=BA=86=E5=AF=B9=E4=BA=8E?= =?UTF-8?q?=E5=8F=B3=E5=80=BC=E7=9A=84=E8=A6=81=E6=B1=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- int2048.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/int2048.h b/int2048.h index de4e5a7..7ac9b28 100644 --- a/int2048.h +++ b/int2048.h @@ -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 &);