摘要: //MFC.h #define BOOL int #define TRUE 1 #define FALSE 0 #include using namespace std; class CObject { public: CObject(){}; ~CObject(){}; }; class CCmdTarget : public CObject { public: CCmdTa... 阅读全文
posted @ 2011-01-03 20:14 Cranny 阅读(615) 评论(0) 推荐(0) 编辑
摘要: //MFC.h #include using namespace std; class CObject { public: CObject() { cout #include "MFC.h" using namespace std; class CMyWinApp : public CWinApp { public: CMyWinApp() { cout<<"CMyWinA... 阅读全文
posted @ 2011-01-03 20:10 Cranny 阅读(284) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; class ClassA { public: int m_data1; int m_data2; void func1(){} void func2(){} virtual void vfunc1(){} virtual void vfunc2(){} }; class ClassB : public Clas... 阅读全文
posted @ 2011-01-03 20:06 Cranny 阅读(167) 评论(0) 推荐(0) 编辑