I have two functions called
void funcBlock(A a, B b, int C, long& R, long& M, double& D)
void funcNormal(A a, B b, long& R, long& M, double& D)
In main method, I would like to use the values from these two function by looping them such as,
main method:
combineFunc cfs[] = { funcBlock, funcNormal }
for (int idx = 0; idx < 2; idx++) //Cause it has two functions to loop over
{
combineFunc cf = cfs[idx];
//Do the rest of the stuffs
}
I encounter error :
error: cannot convert ‘void (*)(A, B, int, long int&, long int&, double&)’ to ‘combineFunc’ in initialization
How do i fix this?