Hello,
I have 2 classes A and N, and I want an association between them.

Here is the code :
Qt Code:
  1. #include "a.h"
  2. #include "n.h"
  3. int main()
  4. {
  5. A* a=new A();
  6. N* n=new N(a);
  7. A->setN(n);
  8. }
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. #ifndef A_H
  2. #define A_H
  3.  
  4. #include "n.h"
  5.  
  6. class A{
  7.  
  8. N* _n;
  9.  
  10. public :
  11. A(){}
  12. void setN(N* n){_n=n;
  13. }
  14.  
  15. };
  16. #endif
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. #ifndef N_H
  2. #define N_H
  3.  
  4.  
  5. #include "a.h"
  6. class N{
  7.  
  8. A* _a;
  9.  
  10. public :
  11. N(A* a):_a(a){} <--- syntax error*: ')'
  12.  
  13.  
  14.  
  15. };
  16. #endif
To copy to clipboard, switch view to plain text mode 
I have a problem at the compilation ...