I'm getting confused and can't get this to work.
Is it possible to have a pointer to a function inside our own class?
The class in reference is the ReefAngelClass and function is FeedingModeStart();
Example:
Code: Select all
typedef void (* FuncPtr) (); // declare function pointers
FuncPtr test=FeedingModeStart;
So, let me give you an overview of what I'd like to do.
I'd like to have an array of function pointers that I can call by using the array reference.
Something like:
Code: Select all
FuncPtr myarray={FeedingModeStart,WaterChangeModeStart};
Code: Select all
myarray[0];
Anyone have any ideas?