C++?????????????????
???????????? ???????[ 2012/9/11 9:59:23 ] ????????
?????????????????????????????????????????????????????????????????????????????з???????????βα??????????????????
bool (*pf) (const string ??const string &); |
?????????佫pf??????????????????????????????????const string&??????βκ?bool???????????
???????*??pf???????????????????bool *pf (const string ??const string &);??????????????pf??????bool*???????????
??????????????????????
????1????????typedef????????????壺
???????????????????????????typedef???????????????????????????????????
typedef bool (*cmp) (const string ??const string &); |
???????????cmp???????????????????????????????????“?????bool?????????????const string&?????????”??????????????????????????????????cmp???ɡ???????ζ??????????????????д??????
????2???????????????????????
?????????ú?????????????е???ú???????????????????????????????????????к?????
bool lcom(const string ??const string &); |
?????????????????????????????????lccom???κ????????????????????????
bool (*) (const string ??const string &); |
????????ú?????????????????????????
cmp pf1=0; cmp pf2=lcom; pf1=lcom; pf2=pf1; |
???????????????ú???????Ч??????????????????????????
cmp pf1=lcom; cmp pf1=&lcom; |
?????????????????????????????????????0????????????г?????????
????????????????0??????????????κκ?????
????3??????????ú???
?????????????????????????????????????????????y????ò??????????????????ú?????
cmp pf=lcom; lcom("hi"??"bye"); pf(''hi"??"bye")==(*pf)("hi"??"bye"); |
???????????????????г???????????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