????5??const static integral ????:
???????????const????static ??????????α?????C++??????????(??????????????????л??в????????VC 6???????)??????????????????г??????short???????float??????????
????// ??float???????????????г????
????// const float CA::fmin = 3.14;
????class CA
????{
????public:
????//static const float fmin = 0.0;// only static const integral data members can be initialized within a class
????const static int nmin = 0;
????……
????public:
????……
????};
????????????????????????????????????????
????1???????????н??е?????const ?? static ?? integral ???????
????2??????????????????б??У? ????const?????Reference????
????3????????????????????????static?????????????????????????
????4????????????????????????????????????????С????????Ч??????

?????????????????????const integral data???????????static????????????.cpp????а????????????????????????У????static????????????????????????????????????????????????ж??????????????????????????????????????????
?????????static?????????????????и?????????????????????????б??е??????????????и????????????copy construction??????????????
????term does not evaluate to a function taking 1 arguments
????????????????????static????????????????????????
????static?????????????????????????????????????????????????static??????
?????磺
????private??
????static int GetXYZ();
??????????????????static?????????????????????static????????д???
????static int A::GetXYZ()
????{
????…………
????}
???????????
????'static' should not be used on member functions defined at file scope
???????????д??????????
????int A::GetXYZ()
????{//????static??????????????????????????????????????д???this is a static function
????…………
????}
????????static??????????????????????д????????????????
????………………
????A::GetXYZ();   //???????????????????????????
????………………
?????????????public???static?????????CString S_str????????????????
????A::S_str = "Hello !";
????CString  str = A::S_str;
????c++????????????????  ???? c/c С?? 2009-11-03 17:19
????C++??????????????????б?
?????????????????????????
????1.??????棬???ù??????????????????????????????
????2.????????????????????????????
????1.????????κγ????????????????????????
????2.??????????????????????г??????
????3.const????????????????????????б??г??????
????4.static???????????????????
????5.??????????????????б??????????
????6.???????????????????????
??????6?????????????????C++???????????峣???????????3??5??ì?????????????????????????а???????????????????????????
?????????????????????????????????????C++?????????
????1.??????б??CSomeClass::CSomeClass() : x(0)?? y(1){}
????2.??????????int CSomeClass::myVar=3;
????3.const?????????????????C++????????ó?????б?;
????4.C++??????峣?????顣
????????const???????3??????
???????constλ???????????const???????????????????????????????????????
???????constλ?????????const??????????????????????????