Hi all, say i had something like:
typedef struct
{
whatever operation;
}my_struct;
int add(int a,int b)
{
return a+b;
}
int subtract(int a,int b)
{
return a-b;
}
and to call it i want to do something like:
//test.operation=either add or subtract;
result=test.operation(a,b);
How would i go about something like that?
Cheers, Fryer.