+ -
当前位置:首页 → 问答吧 → 关于GEANY的代码提示问题。

关于GEANY的代码提示问题。

时间:2011-05-14

来源:互联网

刚接触c,怎么定义求值三角函数呢?

#include<stdio.h>
#include<math.h>
float main()
{
float x=3.14;
float y;
y=cos(x);
printf("%f",y);
}

编译运行的时候总是提示undefined reference to cos

作者: dangxb   发布时间: 2011-05-14