// string的几个基本函数的实现 #include <iostream> #include <assert.h> #include <string.h> using namespace std; class String { public: String() { _str = new char[1]; _str[0] = '