Dynamic array of function pointers
Below is what I want to accomplish. These function pointers depend on how many functions I will be creating. They will always follow the pattern function1, function2, etc.. where it will be function#. Is there any way to go through a loop that assigns function# up to n to these array values? So my code snippet will always populate the array of function pointers up to n with function#'s? Or do I have to hard code an array with functions1...n, than only use the indices 0 to n? Hopes this makes sense, thanks.
typedef void (*FuncPtr)();
FuncPtr* funcPtrs = new FuncPtr[ # ];
//where N is variable
funcPtrs[i] = &functionN