Including two classese in each other

Dear All
Hi

I have two classes A and B. Each class uses the other class in its functions. So I have to include class A in B.h and vice verse.

================================
B.h content
================================
#include "A.h"
.....

================================
A.h content
================================
#include "B.h"
.....

This leads two error. Cloud anyone please help me to solve this problem?

Thank you for your help
You may want to read http://cplusplus.com/articles/Gw6AC542/

In short, if you separate declarations and implementations of your classes, you only really need one include. The other can be replaced with a declaration.
Topic archived. No new replies allowed.