C++??????????
???????????? ???????[ 2015/2/26 15:08:46 ] ????????C++ ???? ??? ???????
??????c++??????У????????????????????????????????????????????????????????????????????3??????????????????
?????????????????????????????C++??????
?????????????????????е??????????????????д?????????????????????????????????????????????????????????????????????????????????????????????????????????????????С?????????????????????????????????????????????С?????????????????????С???????????????????????溯???????????á?
?????????????????
?????????????????????????????????????????????????????????????????
????void add(int a?? int b){
????cout << a + b << endl;
????}
???????????????????????????е??????
???????????????????????????????
????1????????
????void (*p1)(int a?? int b);
???????????????????????????????????????????滻?????p1???????void (*) (int a??int b)?????????????????????????????????????????void () (int a??int b)
????2???????
????p1 = add;
????3????????????壺
????void (*p1)(int a?? int b) = add;
???????????void add(int a??int b)???????add????????????????add????????p1???????????????????p1?????ú??????
????4???????
????(*p1)(1?? 2);
????p1(1?? 2);
?????????????????????2?????????????ú??????
???????????????????????????
????????????????????????????飬?????е???????????????????????????????????????
????1??????*p[n]??(*p)[n]
?????????????[]?????????????????*???????p[3]???????3?????????飬??*p[3] ???? " * " ??????????????????????*p[3]?????????3?????????顣
????p[3]???????3?????????飬???(*p)[3]???? *p ?滻?? p????????????(*p)[3] ?????????????3??????????????
????2????????
????void (*p2[2])(int a?? int b);
???????????p2???????С?2????????????????void (*)(int a?? int b)?????????????????????????????????????????void () (int a??int b)??
??????
???·???
??????????????????
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