已知String的原型为
class String
{
public:
String(const char *str =NULL);//普通构造函数
String(const String &other);//拷贝构造函数
~String(void);//析构函数
String &operate=(const String &other);//赋值函数
private:
char *m_date;//用于保存字符串
};
class String
{
public:
String(const char *str =NULL);//普通构造函数
String(const String &other);//拷贝构造函数
~String(void);//析构函数
String &operate=(const String &other);//赋值函数
private:
char *m_date;//用于保存字符串
};