摘要: 一、声明 要声明一个可以指向函数的指针,只需要用指针替换函数名即可。 bool LengthCompare(const string &s1, const string &s2); //使用指针进行替换 bool (*pf)(const string &s1, const string &s2); 阅读全文
posted @ 2024-05-22 11:17 baobaobashi 阅读(3) 评论(0) 推荐(0) 编辑