关于宏~大家看看
#include "stdio.h"#include "math.h"
#define s(a,b,c) (a+b+c)/2
#define area(a,b,c) sqrt( s(a,b,c)*(s(a,b,c)-a)*(s(a,b,c)-b)(s(a,b,c)-c) )/*定义带参宏*/
main()
{
float a,b,c;
printf("\nenter the angle's three sides:");
scanf("%f,%f,%f",&a,&b,&c);
if( (a+b>c)&&(a+c>b)&&(b+c>a) )
{
printf("\nThe angle's area is %.2f",area(a,b,c));
}
else
printf("\nThis is not a triangle!");
}
在上面代码红色处报错:call of non-function in function main.什么原因?