Im looking to have a common parent function like so
void main (param 1, param 2)
{
<stuff to do>
param1();
print("The function %s was called", param 2);
<more stuff to do>
}
Where param 1 will be the name of the function to be called and param 2 will be some descriptive text. param 2 is easy and I have that solved, but Im unclear as to how I would call a function from the same parent function by passing in the functions name. THere are a few other things that the parent function does, but instead of having multiple parent function who only differ in the function they call or a single parent with a switch statement, id prefer if this way was possible. Any thoughts?