Hello, I am having problem with this code (CPP), i can`t understand why i cannot refer a pointer function. Anyone can help me and can say me the correct way?
//// Here is FunctionPointer.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#ifndef FUNCTIONPOINTER_H
#define FUNCTIONPOINTER_H
class FunctionPointer
{
public:
int sum(int,int);
int product(int,int);
int (*pointer)(int,int); // this pointer will be refer sum or product.
FunctionPointer();
};
#endif // FUNCTIONPOINTER_H