I have the following code
Code:class test {
int t(int );
};
int test::t(int a){
return a;
}
void test2(int (*f)(int )){
printf("%d",f(2));
}
void main()
{
test b;
test2(b.t);
}
I want to send a pointer to the function "t" but I can't figure out how to do it
Can somebody help ?