int Length, Width, Height, Halfheight, DesignCode, done=0;
char Symbol;
//input module
do
{
DesignCode = menu();
switch(DesignCode)
{
case 1:
cout<<"Please enter the length of the sides of the square:\t";
cin>>Length;
cout<<"Please enter the design character for the square:\t";
cin>>Symbol;
Square(Length,Symbol);
break;
case 2:
cout<<"Please enter Length and Width of a rectangle separated by a space:\n";
cin>>Length>>Width;
cout<<"Please enter the design character for the rectangle:\n";
cin>>Symbol;
Rectangle(Length,Width,Symbol);
break;
case 3:
cout<<"Please enter the Height of the Right Triangle:\t";
cin>>Height;
cout<<"Please enter the design character for the Right Triangle :\t";
cin>>Symbol;
Right_Triangle(Height,Symbol);
break;
case 4:
cout<<"Please enter the Height of the Equilateral Triangle:\t";
cin>>Height;
cout<<"Please enter the design character for the Equilateral Triangle:\t";
cin>>Symbol;
Equilateral_Triangle(Height,Symbol);
break;
case 5:
cout<<"Please enter the Halfheight of the Diamond:\t";
cin>>Halfheight;
cout<<"Please enter the design character for the Diamond:\t";
cin>>Symbol;
Diamond(Halfheight,Symbol);
break;
case 6:
done=1;
}//end of switch
if(!done)
{
system("PAUSE");
system("CLS");
}
}while(!done);
return 0;
}//end of program