C++??小??
???????????? ???????[ 2012/8/10 9:43:24 ] ????????
????????????????
????C++????????????????????????????屑????味?? “?????” ?????????渭??????????
????C++????????????????
????1???????????????????????????????????????????
????2???????????????????????????杌€?????????
???????????????
????1??????????????????锟�?????????
????2????????????“???”
????3?????貌?????????????????????????????????? ????????????????????泻????
????4????????“??????”??????“???”
????5?????????????????????????????????
????6??????????????????????????????????????new???????????????
??????????const???????????泄????????????????
????static const double a; //???double????????!
????const double ????::a=1.04; //????????!
????T& operator[](int index); //???????????????????????写
????const T& operator[](int index)const; //?????????????????????????写
???????????????????????????????????
??????1?????????????????????????????????????????????????
??????2??????????????????????????????
???????C++??C???些????
????C??struct??C++??struct??????
????C++??struct???????class????????????class?械????????private????struct????????public??
????C?械?struct??????些??????????澹�?????????????????????????????????????????????
????C?械?Struct???????????????????UDT????C++?械?Struct??????????????ADT?????????????????濉�
????C++????????????p????NULL????delete p?????魏????椤�
????delete p ?????????????????????????????????????妾�
????delete p???????operator delete(void*)????delete[] p???????operator delete[](void*)??
????static ????????????????????
??????1??????????static?????????梅?围??煤????澹�?????auto?????????????????????????危? ?????????鈥参�???????????蔚????
??????2??????????static???????????????????煤?????????????????????????????????
??????3??????????static?????????????????????????????????????????梅?围??????????????????????
??????4???????械?static?????????????????????校?????????卸??????????????
??????5???????械?static?????????????????????校??????????????this???????????????static?????????
????const ????????????????????
??????1??????????????????????????const????????????const????????????????????谐??????????????谢??????????????
??????2?????????????????????????const??????????????????????? const?????????? ???const??
??????3????????????????校?const?????????尾危????????????????????????????????????????
??????4?????????????????????????const???????????????????????????????????????????
??????5??????????????????????????????????const??????????????????“???”??
??????????????????????
??????

???路???
??????????????????
2023/3/23 14:23:39???写?貌??????????
2023/3/22 16:17:39????????????????????些??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???路???????路
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11