【c++入门】函数对象

//函数对象 :若一个类重载了运算符“()”, //则该类的对象就成为函数对象 #include<iostream> #include<vector> #include<list> #include<algorithm> #include<string> using namespace std; class CMyAverage{ public: double operator() (int
相关文章
相关标签/搜索