#16882 - Krakken - Thu Feb 26, 2004 9:05 am
Hi,
Can anyone please give me a quick example on how to store a pointer to a function in a variable and then call that function from that variable - I seem to have forgotten.
This is what I mean:
Can anyone please give me a quick example on how to store a pointer to a function in a variable and then call that function from that variable - I seem to have forgotten.
This is what I mean:
Code: |
void function_to_call (bool x) { // BODY // } ??? call_by_this = function_to_call; call_by_this(true); |