title: Syntax error 'constant error
body: <p>I wrote a class which has a constructor that takes 2 parameters, but when I try to use an object of the class with those parameters I get that syntax error, I have tried everything I know to solve this but I couldn't.
  the code:</p>
  
  <pre><code>class Vector2D{
  public: 
  Vector2D(int  xx, int yy) {}
  Vector2D d(0, 0);
  };
  </code></pre>
  
  <p>the error:</p>
  
  <blockquote>
    <p>Error C2059   syntax error: 'constant'    Project1</p>
  </blockquote>