title: "Missing type specifier int assumed" C++ Issue
body: <p>I have the following problem: This error appeared to me, when I compiled the source code:</p>
  
  <p><code>error C4430: missing type specifier - int assumed</code></p>
  
  <p>This error occurs when a variable is not initialized with any type (like a integer, float or any custom type of object). But, I have a type initialized and it's not recognizable, although I have more classes, which are similarly built like the trouble one, and they're running fine.</p>
  
  <p>So, my problematic class is the following one:</p>
  
  <pre><code>class Rectangle
  {
      float x1, y1, x2, y2;
      bool created;
  
  public:
      Rectangle() { created = false;}
      Rectangle(float x1, float y1, float x2, float y2);
      ~Rectangle() {}
      bool isCreated() { return created;}
      void setCreated( bool c) { created = c;}
      float getX1() { return x1;}
      float getX2() { return x2;}
      float getY1() { return y1;}
      float getY2() { return y2;}
  };
  </code></pre>
  
  <p>An example of a working class:</p>
  
  <pre><code>class Triangle
  {
  private:
      vector&lt;float&gt; x, y, z;
      bool created;
  
  public:
      Triangle() { created = false;}
      Triangle(vector&lt;float&gt; x, vector&lt;float&gt; y, vector&lt;float&gt; z);
      ~Triangle() {}
      bool isCreated() { return created;}
      void setCreated( bool c) { created = c;}
      vector&lt;float&gt; getX() { return x;}
      vector&lt;float&gt; getY() { return y;}
      vector&lt;float&gt; getZ() { return z;}
  };
  </code></pre>
  
  <p>Finally, the code fragment where the errors occur:</p>
  
  <pre><code>class Primitive
  {
  private:
      string index;
      Material mat;
      Texture text;
      int count;
      Rectangle rect; //error detected in this line
      Triangle tri;
      Cylinder cyl;
      Sphere sph;
      Torus tor;
  
  public:
      Primitive() {count = 0;}
      Primitive(string id, Material mt, Texture tx);
      ~Primitive(void);
      string getIndex() { return index;}
      Material getMaterial() { return mat;}
      Texture getTexture() { return text;}
      void addRectangle(float x1, float y1, float x2, float y2);     //error detected in this line
      Rectangle getRectangle() { if(rect.isCreated()) return rect; else return Rectangle(); }   //error detected in this line
      void addTriangle(float x1, float x2, float x3, float y1, float y2, float y3, float z1, float z2, float z3);
      Triangle getTriangle() { if(tri.isCreated()) return tri; else return Triangle(); }
      void addCylinder(float bs, float tp, float hei, int sli, int stac);
      Cylinder getCylinder() { if(cyl.isCreated()) return cyl; else return Cylinder(); }
      void addSphere(float rad, int sli, int stac);
      Sphere getSphere() { if(sph.isCreated()) return sph; else return Sphere(); }
      void addTorus(float in, float out, int sli, int loo);
      Torus getTorus() { if(tor.isCreated()) return tor; else return Torus(); }
  };
  </code></pre>
  
  <p>Any ideas about how to correct it?</p>
  
  <p>EDIT: My includes are:</p>
  
  <pre><code>#include "Material.h" //custom class
  #include "Texture.h"  //custom class
  #include &lt;iostream&gt;
  </code></pre>
  
  <p>The compiler is <code>Visual C++ 2010</code>.</p>