摘要: #include #include using namespace std;class Memento{public: Memento(string sState) { m_sState = sState; } string GetState() { return m_sStat... 阅读全文
posted @ 2014-12-19 12:20 stanley19861028 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class ObjectA{public: void Whoami() { coutWhoami(); m_pObjectB->Whoami(); } void Interact2() { m_pObjectB->Whoami()... 阅读全文
posted @ 2014-12-19 09:29 stanley19861028 阅读(138) 评论(0) 推荐(0) 编辑