Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include "in1.h"
  2. #include "in2.h"
  3. #include <iostream>
  4.  
  5. int _tmain(int argc, _TCHAR* argv[])
  6. {
  7. IN1_ f = {2};
  8. IN2_ ff = {2};
  9. fun_in1(ff,f);
  10. fun_in2(f, ff);
  11. int i;
  12. std::cin >> i;
  13. return 0;
  14. }
  15.  
  16.  
  17. файл in1.h
  18. #ifndef IN1
  19. #define IN1
  20. #include "in2.h"
  21. #define MAX_IN1 2
  22.  
  23. struct IN1_ {
  24. int n;
  25. };
  26.  
  27. void fun_in2(IN1_ sen, IN2_ sen2);
  28. void fun_in1(IN2_ sen, IN1_ sen2);
  29. #endif
  30.  
  31.  
  32. файл In2.h
  33.  
  34. #ifndef IN2
  35. #define IN2
  36.  
  37. #define MAX_IN2 4
  38.  
  39. struct IN2_ {
  40. int n;
  41. };
  42.  
  43.  
  44.  
  45. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement