?????????????C???????????????????????????Ч???????????????????????????????????????????????C++???C??????к???????????????C???????????Ч???????????????????????????????????????????????????????????????????????

????????????C????????????????????漰??????????????????????macro???????pointer????????struct??????????function???????饗array?????????????????????C++????????????????????????????????г????private members???????г????public members?????????????function overloading????????????default parameters????????????????????????????????references???????????????operator overloading?????????friends??????壨templates???????????exceptions????????????????????????????????????????????????????

????C???????????????????????Ч??????????????????C?????Ч?????????????80%???????????????????????C??????Ч????????????????C++?????C???????Ч??????????????C++???????stroustrup???C++Ч????????????????C???5%??????????????????????????C++????к???Ч?????????????C++??????е?????Ч???????C++??????????Щ?????????????????????????Ч?????????????????????????????????C++???Щ?????????????????????????????????????????Ч???

????????????????????????????????????C++????????ú?C?????????????C++???????????????????????ЩC++?????????????????????????????C++??Ч??????????????????????????????????????????????????????????????????????????

class X
{
public:
virtual ~X(); //????????
virtual void VirtualFunc(); //?麯??
inline int InlineFunc() { return m_iMember}; //????????
void NormalFunc(); //??????????
static void StaticFunc(); //???????
private:
int m_iMember;

};

class XX: public X
{
public:
XX();
virtual ~XX();
virtual void VirtualFunc();
private:
String m_strName;
int m_iMember2;

};

????C++????????????????????????inline member function????????????????static member function?????麯????virtual member function????????????????

??????????????????C?????е???庯???????C++????????????????????????????????????λ????????????????????????????????????????????????????Щ??????????????????????????????????????????????Ч???????????????????д?????????????????????????????????????????????????????????????С??????inline????????????????????????????????????????????????????????Щinline???????????????????????????????????????????????????????????Щ????????????????純???????и???????????????????????????????????????????嶨?????????????Ч?????ò??????

???????????????????????????????

X obj; X* ptr = &obj;
obj.StaticFunc();
ptr->StaticFunc();
X::StaticFunc();