title: vector argument in c++ class
body: <p>I would like to create a C++ Class which takes a "vector" int t[9] as argument. I don't understand why my code isn't working :</p>
  
  <p>Here is the content of the header :</p>
  
  <pre><code>class Matrice3x3{
  public:
      int n;
      int t[9];
      Matrice3x3 inverse();
      float det();
      void print();
      Matrice3x3(int u = 3);
      Matrice3x3(int p[9], int m = 9);
  private:
  };
  </code></pre>
  
  <p>And here the content of the class description :</p>
  
  <pre><code>Matrice3x3::Matrice3x3(int u) {
      n = u*u;
  }
  
  Matrice3x3::Matrice3x3(int p[9] , int m){
      n = m;
      t = p;
  }
  </code></pre>
  
  <p>And i get this error :</p>
  
  <pre><code>In constructor 'Matrice3x3::Matrice3x3(int*, int)':
  incompatible types in assignment of 'int*' to 'int [9]'
  t = p;
    ^
  </code></pre>
  
  <p>I just don't see where i said one of the [] was a pointer...</p>
  
  <p>thanks for answering!</p>