I have a class:
class X{
public :
void f ( int ) ;
int a ;
} ;
And the task: "Inside the code contains declarations for:
- pointer to an int variable of class X
- pointer to void (int) function defined inside class X
- pointer to a double variable of class X "
So, a pointer to int a will be just int * x = & a, right? If there is no double in X, can I already create a double pointer inside this class? And the biggest problem is the second task. How to declare a pointer to a function?
source
share