String& String::operator=(const string& other){ if(this == &other) { return *this; } delete m_data; m_data = new char[strlen(other.m_data)+1]; strcpy(m_data,other.m_data); return *this;}
Powered by: 博客园 Copyright © 2024 戒色 Powered by .NET 9.0 on Kubernetes