main前面加上
#include
using namespace std;
相应的改为 cout<<"please input 3 sides of one triangle:\n";
cin>>a>>b>>c;
cout<<","<cout<<"area of truangle is "<
#include
#include
#include
#include
using namespace std;
int main()
{
float a,b,c,s,area;
cout<<"please input 3 sides of one triangle:"<
s=(a+b+c)/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
cout.setf(ios::fixed);
cout.precision(2);
cout<<"a="<
cout<<"area of triangle is"<
}