Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /*---------A.h-----------*/
  2. #ifndef _A_H
  3. #define _A_H
  4.  
  5. #include "B.h"
  6. typedef struct A A;
  7. struct A
  8. {
  9. B * b;
  10. };
  11. #endif
  12.  
  13. /*-------------B.h-------------*/
  14. #ifndef _B_H
  15. #define _B_H
  16.  
  17. #include "A.h"
  18. typedef stuct B B;
  19. struct B
  20. {
  21. A * a;
  22. };
  23. #endif
  24.  
  25. /*-----------main.c------------*/
  26. #include "A.h"
  27. #include "B.h"
  28.  
  29. main()
  30. {
  31. struct A alfa;
  32. struct B vita;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement