S
Size: a a a
S
S
S
EP
S
S
M
M
CC
String &operator=(const String &other)
{
delete[] str;
str = new char[other.size + 1];
strcpy(str, other.str);
size = other.size;
return *this;
}
CC
String &operator=(const String &other)
{
delete[] str;
str = new char[other.size + 1];
strcpy(str, other.str);
size = other.size;
return *this;
}
CC
CC
CC
CC
CC
🦊
CC
CC