C++ Passing pointer to non-static member function
问题 Hi everyone :) I have a problem with function pointers My 'callback' function arguments are: 1) a function like this: int(*fx)(int,int) 2) an int variable: int a 3) another int: int b Well, the problem is that the function I want to pass to 'callback' is a non-static function member :( and there are lots of problems If someone smarter than me have some time to spent, he can look my code :) #include <iostream> using namespace std; class A{ private: int x; public: A(int elem){ x = elem; }