收录查询
摘要: /* 为了简单起见都采用单文件和public mv(member variable)形式*/ #include #include #include using namespace std; //////////////////////////////////////////////////////////////////////////class CAge: public CObject{pu... 阅读全文
posted @ 2005-12-17 23:04 -> 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 原型:[virtual]void CObject::AssertValid() const //说明:该成员函数只能对成员变量做"引用型"操作,不能做"加工型"操作{ASSERT(this != NULL);}MSDN:When you write your own class, you should override the AssertValid function to provide dia... 阅读全文
posted @ 2005-12-17 18:26 -> 阅读(419) 评论(0) 推荐(0) 编辑