Here is the program which uses pointers to members, variables and functions.
Pointer to variables are done without error as i checked keeping the blocks with problem in comment line.
The problem is...