error C2064: term does not evaluate to a function 如何解决
#include "stdafx.h"#include "math.h"
int main(int argc, char* argv[])
{
printf("Hello World!\n");
printf("Please input 3 integers to work out the area of triangle");
int a,b,c;
double s,area;
scanf("%d %d %d",&a,&b,&c);
printf("You input the 3 integers are%d--%d--%d",a,b,c);
if ((a+b)>c&&(a-b)<c)
{
s=0.5*(a+b+c);
area=sqrt(s*(s-a)(s-b)(s-c));
printf("The Triangle's area is%d");
}
else
printf("The integers you inputed are wrong which can not be a triangle");
return 0;
}
系统显示:error C2064: term does not evaluate to a function
我是初学者,请问如何解决这个问题,谢谢!