# include
# include
# define EPS 1 e - 1
using namespace std;
The class ctriangle
{
Public:
Ctriangle (float, float, float);
Float generating ();
Float area ();
Void judgeclass ();
Bool judge ();
Private:
Float edge1;
Float edge2;
Float edge3;
};
Ctriangle: : ctriangle (float a, float b, float c)
{
Edge1=a;
Edge2=b;
Edge3=c;
}
Float ctriangle: : area ()
{
Float p=(edge1 and edge2 + edge3)/2;
Return SQRT (p * (p - edge1) * (p - edge2) * (p - edge3));
}
Float ctriangle: : generating ()
{
Return the edge1 + edge2 + edge3;
}
Void ctriangle: : judgeclass ()
{
If (fabs (edge1 - edge2) & lt; EPS |=| fabs (edge2 - edge3) & lt; EPS |=| fabs (edge1 - edge3) & lt; EPS)=
{
Cout<& lt;" Isosceles triangle "& lt; Edge3 & amp; & Edge2 + edge3 & gt; Edge1 & amp; & Edge1 + edge3 & gt; Edge2);
}
Int main ()
{
Float a, b, c;
Cin> a> B> c;
Ctriangle d1 (a, b, c);
If (d1. Judge ())
{
Cout<& lt;" Area: "& lt;