#include<iostream>
using namespace std;
class triangle
{public:
triangle(int,int,int);
int c();
int s();
void set();
void show();
private:
int x,y,z;
};
int triangle::c()
{return(x+y+z);
}
int triangle::s()
{return(x*y*z);
}
void triangle::set()
{cin>>x>>y>>z;
}
void triangle::show()
{cout<<x<<y<<z<<endl;
}
int main()
{triangle T;
cout<<"请输入三角形的三边长"<<endl;
T.set();
cout<<"三角形的周长为:"<<T.c()<<endl;
cout<<"三角形的面积为:"<<T.s()<<endl;
cout<<"三角形的长度值为:"<<endl;
T.show();
return 0;
}
using namespace std;
class triangle
{public:
triangle(int,int,int);
int c();
int s();
void set();
void show();
private:
int x,y,z;
};
int triangle::c()
{return(x+y+z);
}
int triangle::s()
{return(x*y*z);
}
void triangle::set()
{cin>>x>>y>>z;
}
void triangle::show()
{cout<<x<<y<<z<<endl;
}
int main()
{triangle T;
cout<<"请输入三角形的三边长"<<endl;
T.set();
cout<<"三角形的周长为:"<<T.c()<<endl;
cout<<"三角形的面积为:"<<T.s()<<endl;
cout<<"三角形的长度值为:"<<endl;
T.show();
return 0;
}