if(this == &other)//检查自赋值
return * this ;
delete [] m_date;// 释放原有的内存资源
int length = strlen(other.m_date);
m_date = new char[length+ 1];// 对m_data加NULL判断
strcpy(m_date,other.m_date);
return *this ;// 返回本对象的引用
if(this == &other)//检查自赋值
return * this ;
delete [] m_date;// 释放原有的内存资源
int length = strlen(other.m_date);
m_date = new char[length+ 1];// 对m_data加NULL判断
strcpy(m_date,other.m_date);
return *this ;// 返回本对象的引用