String 类 Copy-On-Write 技术以及使用时存在的风险 先来看一下string 面试时的简易写法(使用的是深拷贝): class String { String() :str(new char[1]) { str[0] = '