In C++, I have A.h and B.h. I need to include A.h in B.h, then I needed to use an object from B inside A.cpp. So I included B.h in A.h so it refused. I tried to use these lines in .H files
#ifndef A_H
#define A_H
...my code
#endif
I had the same refused. so I tried in A.h file to put
class B;
as a defined class. so it took it as another class not the same B class which i want. what i have to do?