摘要: class Book{public: Book(); virtual ~Book(); Chapter *m_Chapter;};class Chapter{public: Chapter(); virtual ~Chapter();}; 阅读全文
posted @ 2009-02-07 16:43 jerry550409 阅读(180) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->class Team{public: Team(); virtual ~Team(); Player *m_Player;};class Player{public: ... 阅读全文
posted @ 2009-02-07 10:05 jerry550409 阅读(133) 评论(0) 推荐(0) 编辑
摘要: class Class5{public: Class5(); virtual ~Class5(); Class5 *target;}; 阅读全文
posted @ 2009-02-07 08:53 jerry550409 阅读(101) 评论(0) 推荐(0) 编辑
摘要: class Class3{public: Class3(); virtual ~Class3(); Class4 *c4;};class Class4{public: Class4(); virtual ~Class4();}; 阅读全文
posted @ 2009-02-06 21:00 jerry550409 阅读(157) 评论(0) 推荐(0) 编辑
摘要: class C1{public: C1(); virtual ~C1(); C2 *theC2;};class C2{public: C2(); virtual ~C2(); C1 *theC1;}; 阅读全文
posted @ 2009-02-06 20:07 jerry550409 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Call by value--- part 1 void test(int i){ i=5; } void main(){ int i=0; test(i); cout << "i=" << i << endl; } the result i=0 Call by address--- part 1 void test(int... 阅读全文
posted @ 2009-02-03 08:57 jerry550409 阅读(190) 评论(0) 推荐(0) 编辑
摘要: class State{ public: virtual State* Handle() = 0;};class ConnectState: public State{ public: State* Handle();};State* ConnectState::Handle() { printf("ConnectState\n"); return new Co... 阅读全文
posted @ 2009-02-02 19:31 jerry550409 阅读(135) 评论(0) 推荐(0) 编辑