I tried searching for this for a bit but everything seemed a little advanced for me. I have a function pointer:
void (*fun)();
Then I have class.
class info
{
public:
void think();
};
extern class info player;
Is there a way to point fun to the think function?
I tried
fun=player.think;
but that got me
error C3867: 'info::think': function call missing argument list; use '&info::think' to create a pointer to member
I'm sure it's either something simple or that the two functions are just incompatible. Could anyone please tell me what I'm missing?
Thanks for any help!