I just restarted programming (I had given up for a while), and have ran into a problem. How do you access the function that is in one class from another:
1 2 3 4 5 6 7 8 9
class a
{
public:
void afunc();
};
class b
{
void bfunc (a::afunc);//is that how you do this?
};
So that's what I want to do, but it doesn't work. Any help?
Currently it seems that you'd like to pass the address of the function as an input parameter to a function of class b. But somehow I don't think that's what you want or need.