上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 63 下一页
摘要: #include #include using namespace boost;using namespace std;class Bridge{public: class Person; Bridge(); ~Bridge(); void ShowMsg();private: boost::shared_ptr m_person;};class Bridge::Person{public: Person(); ~Person(); void ShowMsg();};void Bridge::ShowMsg(){ this->m_person->ShowMsg();}Bridge: 阅读全文
posted @ 2013-07-06 12:38 Predator 阅读(260) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace boost;using namespace std;void main(){ boost::shared_ptr p = boost::make_shared(14); cout other = p; cout > wait;} 阅读全文
posted @ 2013-07-06 12:37 Predator 阅读(982) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace boost;using namespace std;class Person{public: Person(){} Person(string name, int age){this->m_strName = name; this->m_nAge = age;} ~Person(){} void DisplayMsg(){cout m_strName m_nAge m_strName = name; this->m_nAge = age;}private: string m_strName; 阅读全文
posted @ 2013-07-06 12:36 Predator 阅读(780) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace boost;using namespace std;class Person{public: Person(){} Person(string name, int age){this->m_strName = name; this->m_nAge = age;} ~Person(){} void DisplayMsg(){cout m_strName m_nAge m_strName = name; this->m_nAge = age;}private: string m_strName; int m_nA 阅读全文
posted @ 2013-07-06 12:35 Predator 阅读(489) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 63 下一页