摘要:
#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: 阅读全文
摘要:
#include #include using namespace boost;using namespace std;void main(){ boost::shared_ptr p = boost::make_shared(14); cout other = p; cout > wait;} 阅读全文
摘要:
#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; 阅读全文
摘要:
#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 阅读全文