'am using maps for the first time. Can not figure out why theis not working.Code:o_f _sin(&d_sin);
Code:#include<map> #include<cmath> class o_f //Operator Functions { public: double (*func)(double); o_f(double (*fun)(double)) {func = fun;}; }; double d_sin(double x) //double_sin { return sin(x); } int main() { std::map<int,o_f> m; o_f _sin(&d_sin); m[1]=_sin; return 0; }