摘要: #include #include using namespace std; class String { private: char *str; public: String():str(NULL){}; const char * getStr() const//此处注意要设置为常量成员函数,防止str所指向的内容被修改。 { retu... 阅读全文
posted @ 2019-08-04 19:38 奇婆子 阅读(927) 评论(0) 推荐(0) 编辑