摘要:
#include<iostream> using namespace std; #include<vector> #include<algorithm> //一元谓词 //仿函数 返回值类型是bool数据类型,称为谓词 //一元谓词 class GreaterFive { public: bool 阅读全文
posted @ 2021-01-16 11:33
loliconsk
阅读(314)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; //函数对象的基本使用 class MyAdd { public: MyAdd() { this->count = 0; } int operator()(int a, int b) { count++; return 阅读全文
posted @ 2021-01-16 10:26
loliconsk
阅读(107)
评论(0)
推荐(0)

浙公网安备 33010602011771号