Re: [Dev-C++] Array of function pointers
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hongli L. <h....@ch...> - 2002-06-30 19:01:41
|
On Sun, 2002-06-30 at 20:27, Abhijit Shylanath wrote:
> Sorry for my repeated OT posts, but I don't subscribe to many lists because
> they have too much of traffic, and poor little me has a dial-up account. Of
> all the lists I do subscribe to, Dev-C++ seems to have the most
> knowledgeable (and tolerant) people.
>
> Having finished buttering you up, here's my question:
> How do I create an array of function pointers?
>
typedef void (*FooFunction) (int data);
void foo(int data);
void bar(int data);
FooFunction function_array[] = { foo, bar };
|