I defined
int(*Functions[3])();
int select(){
cout<<"SELECT!";
getchar();
}
Now i want to assign a function to 'Functions', and when i do like this:
Functions[0]=select;
Functions[0];
It works, but i want to assign function 'select' from my own object
class worker{
HERE DEFINED FUNCTION
}
worker object1;
Functions[0]=object1.select;
It doesn't work. "use '&' to create a pointer to member", " '=':cannot convert from 'int(_thiscall worker::)(void)' to 'int(_cdecl)(void)'"
I don't know a differences between using
select();
object1.select();