帮忙看一下为什么在VS2008上老出错?(新手)
#include <iostream>#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
double a,b,c;
cout<<"please enter a,b,c:";
cin>>a>>b>>c;
if(a+b>c&&a+c>b&&b+c>a)
{
double s,area;
s=(a+b+c)/2;
area=sqrt(s*(s-a)*s*(s-b)*(s-c));
cout <<setiosflags(ios::fixed)<<setprecision(4);
cout <<"area="<<area<<endl;
}
else cout<<“it is not a trilateral!"<<endl;
return 0;
}
[ 本帖最后由 ydq7113103 于 2009-11-22 19:22 编辑 ]