I want to create two classes that contain member functions where each meber function references the other class
eg
#include "A.h"
Class A{
private:
int a;
public:
void func(B b){};
}
#include "B.h"
Class B{
private:
int b;
public:
void func(A a){};
}
I know something is needed to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.