菜菜

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年2月15日

摘要: #include using namespace std; class Example5 { string* ptr; public: Example5(const string& str):ptr(new string(str)){} ~Example5(){delete ptr;} //copy constructo... 阅读全文
posted @ 2018-02-15 22:08 好吧,就是菜菜 阅读(146) 评论(0) 推荐(0)