#include<iostream> #include<cstring> #include<cstdlib> #include<cstdio> #include<algorithm> using namespace std; class mystring{ public: mystring(const char *str=NULL); mystring(const mystring &other); ~mystring(void); mystring &operator=(const mystring &other); mystring &operator+=(const mystring &other); char *getString(); private: char *m_data; }; //普通构造函数 mystring::mystring(const char *str){ if(str==NULL){ m_data=new char; *m_data='