When you want to use function pointers (class or non class) here are the steps. Start with a function definition. Eg.int DoAnalysis(int a,string label);. Now rRemove parameter names ....int DoAnalysis(int,string); and add the (* ... ) to get
int (*DoAnalysis)(int,string)This is your variable type. You'll store an instance of this. Change the function name to something to remind you
int (*pointerToTwoParamIntFunction)(int,string)If you are pointng to a class method, add the class name prefix classname::Eg
int (Classname::*pointerToTwoParamIntFunction)(int,string)Before calling it, check the value is assigned!
if (pointerToTwoParamIntFunction ==0)
return;
pointerToTwoParamIntFunction(int i, string s)
That completes this tutorial. The next one will be on C++ strings.

