这算是什么东西!!!

来源:互联网 发布:sciencedirect数据库 编辑:程序博客网 时间:2024/03/29 21:07

#include<math.h>
#include<stdio.h>
main()
{
double x,s;
printf("input number:/n");
scanf("%lf",&x);
s=sin(x);
printf("sine of %lf is %lf/n",x,s);
}

-------------------------------------------------------------------------------------------------------------------------------------

 

/tmp/ccVehrG6.o: In function `main':
t1-2.c:(.text+0x32): undefined reference to `sin'
collect2: ld returned 1 exit status
—————————————————————————————————————————————

07年的书,11年的编译器,呜呜…………

原创粉丝点击