Merge pull request #207 from zhkgo/patch-2

Update 重要.cpp
This commit is contained in:
Francis
2022-04-10 16:25:47 +08:00
committed by GitHub

View File

@@ -21,7 +21,7 @@ public:
const String &operator=(const String &R)
{
length = R.length;
strcpy(R.sPtr, sPtr);
strcpy(sPtr, R.sPtr);
return *this;
}; //重载赋值运算符 =
const String &operator+=(const String &R); //字符串的连接 +=