1. /**** testA.h ****/
  2.  
  3. #ifndef __TESTA__
  4. #define __TESTA__
  5.  
  6. #include "testB.h"
  7.  
  8. class testA
  9. {
  10. public:
  11.     testA(void);
  12.     ~testA(void);
  13.    
  14.     testB __;
  15. };
  16.  
  17. #endif
  18.  
  19. /**** testB.h ****/
  20.  
  21. #ifndef __TESTB__
  22. #define __TESTB__
  23.  
  24. #include "testA.h"
  25.  
  26. class testB
  27. {
  28. public:
  29.     testB(void);
  30.     ~testB(void);
  31.  
  32.     testA __;
  33. };
  34.  
  35. #endif