title: will not compile incompatible types in assignment of 'int*' to 'int [0]'
body: <p>here is my code:
  CPP:</p>
  
  <pre><code>#include "../include/Enemy.h"
  
  Enemy::Enemy(int X[], int Y[], int Type )
  {
  
      x=X;
      y=Y;
      type=Type;
  }
  
  Enemy::~Enemy()
  {
      //dtor
  }
  </code></pre>
  
  <p>Header:</p>
  
  <pre><code>#ifndef ENEMY_H
  #define ENEMY_H
  
  
  class Enemy
  {
      public:
          Enemy(int X[], int Y[], int Type );
          virtual ~Enemy();
      protected:
      private:
          int type;
          int x[], y[];
  
  };
  
  #endif // ENEMY_H
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>||In constructor 'Enemy::Enemy(int*, int*, int)':| |6|error:
    incompatible types in assignment of 'int*' to 'int [0]'| |7|error:
    incompatible types in assignment of 'int*' to 'int [0]'| ||=== Build
    finished: 2 errors, 0 warnings (0 minutes, 0 seconds) ===|</p>
  </blockquote>
  
  <p>Can someone explain why this is and how to remedy it </p>