C++????????????????(???????)
???????????? ???????[ 2015/3/13 10:56:21 ] ????????C++ ??? ?????? ???
????????????????????????????????????????????????????????????????????????е???????????С????void*????????????????????????????????????????????????????С???????????void*?????????????????????????
?????? ?????
????1. ???????????
???????????????棬?????????????????????
??????????????????????
?????? ????
????1. ??????????壬?????y??????????
????2. ??????????????????*?????????????????
????3. ??????????????????????Σ????????????
????????“???????” ^_^
????4. ??????? const??????? const??const ????????
????5. ???ò?????????????????
????6. “sizeof ????”?????????????????????????С????“sizeof ???”???????????????????????????????????С??
????typeid??T?? == typeid??T&?? ????棬sizeof??T?? == sizeof??T&?? ????棬??????????????????????????????????????4???????????????漲????
????7. ???????????????++?????????岻?????
?????? ???
????1. ?????????????????????????????????
????2. ?????????????????????????????????????????????????????????????????????????????
??????????C++?е?????????????????ú????????????3????У?n ??m ??????????reference????m ?????????referent????
????int m??
????int &n = m??
????n ????m ????????o??????n ???κβ??????m ?????????????????????С???????o???“???”???“???”?????????????????С?????????????n ?????m ???????????????m ????????n ??m ???????
??????????Щ???????£?
??????1?????????????????????????????????????κ?????????????
??????2????????NULL ??????????????????洢???????????????????NULL????
??????3????????????????????????????????????????????????????????
????????????????У?k ????????i ?????á????k = j ???????k ?????j ???????????k ????????6.????k ??i ???????????i ?????????6.
????int i = 5??
????int j = 6??
????int &k = i??
????k = j?? // k ??i ??????????6??
??????????????????????????????????????????????????????????????????????????????????C++?????У??????????????????????????????????????????????????
????1)??????“?????”?????????????Func1 ?????????x ????????n ?????????????x ??????????n?? ????n ????????0.
????void Func1(int x)
????{
????x = x + 10;
????}
????int n = 0;
????Func1(n);
????cout << “n = ” << n << endl;// n = 0
??????
???·???
??????????????????
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