c++ class the output doesn't display completely
<p>This code produces no errors, but in the output just this line will show up then the program exits: </p>

<pre><code>cout &lt;&lt; "write 1 for areaoftrapezium and 2 for areaofrhombus and 3 for                      areaofParallelogram " &lt;&lt; endl;
cin &gt;&gt; option;
</code></pre>

<p>and here the full code I don't know what is wrong</p>

<pre><code>#include&lt;iostream&gt;
using namespace std;

 class project
{

private:
float base, base2, height;
float diagonal, diagonal2;
float base3, aldtude;
  public:
void trapezium() {

    float areaoftrapezium;
    areaoftrapezium = 0.5*(base + base2)*height;
    cout &lt;&lt; "the area of trapezium is:" &lt;&lt; areaoftrapezium;
  }
void rhombus() {

    float areaofrhombus;
    areaofrhombus = 0.5*diagonal*diagonal2;
    cout &lt;&lt; "the  area of rhombus is:" &lt;&lt; areaofrhombus;
}
void Parallelogram() {

    float areaofParallelogram;
    areaofParallelogram = base3*aldtude;
    cout &lt;&lt; "the  area of Parallelogram is:" &lt;&lt; areaofParallelogram;
}

project(int a, int b, int c){
    base = a;
    base2 = b;
    height = c;
}
project(int d, int e) {

    diagonal = d;
    diagonal2 = e;

}


float getbase() {
    return base;
}
float getbase2() {
    return base2;
}
float getheight() {
    return height;
}
float getdiagonal() {
    return diagonal;

}
float getdiagonal2() {
    return diagonal2;
}
float getbase3() {
    return base3;
}
float getaldtude() {
    return aldtude;
}
};

int main()

   {
    int a, b, c, d, e, f, h;

int option = 0;

project obj();


cout &lt;&lt; "write 1 for areaoftrapezium and 2 for areaofrhombus and 3 for areaofParallelogram " &lt;&lt; endl;
cin &gt;&gt; option;
switch (option) {

case  '1':
{
    cout &lt;&lt; "Enter the value for two bases &amp; height of the trapezium: " &lt;&lt;     endl;
    cin &gt;&gt; a;
    cin &gt;&gt; b;
    cin &gt;&gt; c;

     project obj(a, b, c);
     obj.trapezium();

}
break;

case  '2':
{
    cout &lt;&lt; "Enter diagonals of the given rhombus:" &lt;&lt; endl;
    cin &gt;&gt; d;
    cin &gt;&gt; e;
    project obj( d,  e);
    obj.rhombus();
}
break;

case  '3':
{
    cout &lt;&lt; "Enter base and altitude of the given Parallelogram:  " &lt;&lt; endl;
    cin &gt;&gt; f;
    cin &gt;&gt; h;
    project obj( f,  h);

    obj.Parallelogram();

}
break;

}

system("pause");
return 0;

}
</code></pre>

<p>Please tell me what I'm missing? </p>