查看详细资料
#include <math.h>和 #include “math.h”
都试过了,通过预编译可以看见 math.h 已经链接上了,下面有sin(),cos()的函数的声明,
只是在用时
代码:
#include <math.h>
#include <main.h>
#include <float.h>
double m;
main()
{
m=sin(3.14/2);
}
编译时 会出错,说 sin in file ... is unfined,
不知道哪位大侠遇到过没有,
请指教啊~~~~
4楼讲得对!
我有个问题:
CodeWarrior for DSC56800E v8.2
中
调用SIN函数求11.58的值,即:sin(11.58)=0.968490 求得值为何不对!
应该是:-0.834029 才对啊!