C++ 函数对象 即仿函数的简单实用
#define _CRT_SECURE_NO_WARNINGS#include<iostream>using namespace std;class MyPrint{public: void operator()( int num) { cout << "num " << num << endl; count++; } ...