这个应该怎么写啊,有被难到了

img


求帮助,谢谢了,不太理解如何构造函数,以及析构函数,求帮忙看一下,写写,我理解理解

都在书上
你有书不看,非要别人把书上的东西粘到网页上,你才看?

#inciude
#include<cmath>
using namespace;
class Ctriangle
{
private:
double a,b,c;
public:
bool istri(int A,int B,int C)
{
B=(b<a+c&&b>0)?1:0
A=(a<b+c&&a>0)?1:0
C=(c<a+b&&c>0)?1:0
}
int perimeter(int a,int b,int c)
{
int C;
C=a+b+c
cout<<"C"<<C;
}
double area(int a,int b,int c)
{
int S.P;
P=(a+b+c)/2.0
S=sqrt(P*(P-a)(P-b)(P-c))

   cout<<"S"<<S;
}
}

int main()
{
Ctriangle c1(3,4,5);
c1.istri();
c2.perimeter();
c3.area();
Ctrianglec2(c1)
return 0;
}