设计你自己的字符串类MyString1,并实现下面函数:
MyString1();
MyString1(char *chars);
MyString1(char char[], int size);
MyString1 append(MyString1 s);
MyString1 append(MyString1 s, int index, int n);
MyString1 assign(char chars[]);
MyString1 assign(MyString1 s, int index, int n);
char at(int index);
int length();
void clear();
MyString1 erase(int index, int n);//删除当前从index开始的n个字符
bool empty();
int compare(MyString1 s);
请写出MyString类,然后实现以上函数,谢谢!!
POPMUISE