#include<iostream> using namespace std; class Fun { public: double operator ( ) (double x,double y) const { return (x*x+5*x-8)*(y+5); } }; void main() { Fun f1,f2; cout<<f1(1.5,2.0)<<endl; cout<<f2(2.1,1.0)<<endl; }