Dynamic Function Pointer
A quick question, how to allocate a dynamic array of function pointers? I am getting a syntax error when trying to. The following code might give a better understanding:
double func(const double); // function declaration
double (**FuncPtr) (const double); // dynamic array
FuncPtr = new double (*)(const double)[MAX]; // syntax error
Thanks a lot Salem! That not only fixed my problem but made my life easier :)
If you don't want to use typedef:
FuncPtr = new (double (*)(const double));
Thanks Sang-drax. By the way, very nice game you got there. I like the graphics.
Are you using DX or regular win GDI?