String类的具体实现

字符串类的定义:

通用构造函数的定义:

 

 

 复制构造函数的定义:

 

 

 赋值函数:

 

 

 析构函数:

 

posted @ 2020-03-12 21:20  ponxiaoming  阅读(129)  评论(0编辑  收藏  举报