//浅拷贝优化--带有计数版本的String类,用指针指向计数的空间 class String { public: String(const char* s = "") : _pCount(new int(1)) { if (NULL == s) { _pStr = new char[1]; *_pStr = '