摘要:
文章转自:http://www.cnblogs.com/pure/archive/2010/09/21/1832705.html两者先后顺序不同,构造函数生成本类的对象,但没有产生窗口,OnCreate后窗口产生, 然后才是视图的OnInitialUpDate,一般在这里对视图的显示做初化。 OnCreate只是产生VIEW的基本结构和变量,而在OnInitialUpDate中,主要对视图中控件等... 阅读全文
摘要:
#include using namespace std; class Furniture { public: Furniture(){} void SetWeight(unsigned i) { weight = i; } unsigned GetWeight() { return weight; } protected: unsigned weight; }; ... 阅读全文
摘要:
#include using namespace std; class OBJ1 { public: OBJ1() { cout<<"construct OBJ1"<<endl; } }; class OBJ2 { public: OBJ2() { cout<<"construct OBJ2"<<endl; } }; class Base1 { public: Ba... 阅读全文
摘要:
//account.h #pragma once #include using namespace std; class Account { public: Account(void); ~Account(void); Account(unsigned accNo,float balan = 0.0); int AccountNo(); float AcntBalan(); s... 阅读全文