摘要: In fact, Ptr alone can accomplish the task mentioned below.Implementation see Ptr.h, main2.cpp. In C++11, we also have a better choice: std::shared_pt... 阅读全文
posted @ 2014-11-21 22:42 rldts 阅读(295) 评论(0) 推荐(0) 编辑
摘要: In this case, Box need access to Cup.func, AND Cup need access to Box.func, both of which are private because I don't want any other class to have acc... 阅读全文
posted @ 2014-11-21 17:13 rldts 阅读(210) 评论(0) 推荐(0) 编辑