/*计算三角形面积*/
#include <stdio.h>
double sin(double x);
#define PI 3.14159265
int main()
{
double a, b, ang_c, s;
scanf("%lfa=3%lfb=4%lfc=45", &a, &b, &ang_c);
s = a * b * sin(ang_c * PI / 180.0) / 2.0;
printf("The area is %f\n", s);
return 0;
}
————————————————————————————————————————————————————————————————————————————————————————————
Linking...
求三角形面积.obj : error LNK2001: unresolved external symbol "double __cdecl sin(double)" (?sin@@YANN@Z)
Debug/求三角形面积.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
求三角形面积.exe - 2 error(s), 0 warning(s)
求助