I've a pointer to the function that can point to the function with one, two or more args.
double (*calculate)(int);
double plus(int a, int b){ return a+b; }
double sin(int a){ return Math::Sin(a); }
how is it possible for me to use
calculate = plus;
calculate = sin;
in the same program. Not allowed to change functions plus and sin. Writing in managed c++;
I've tried double (*calculate)(...);
but that's not working.