编程论坛
注册
登录
编程论坛
→
C++教室
帮忙找出错误
泪倾城
发布于 2010-11-20 14:15, 324 次点击
#include<stdio.h>
#include<math.h>
int main()
{
float x;
x=cos(o);
printf("%f\n",x);
}
3 回复
#2
dominator
2010-11-20 14:51
啥子意思喃??、··
#3
loveshuang
2010-11-20 16:13
什么意思嘛???cos(o)括号里面的o干嘛的呢?是不是要这样的呢?
#include<stdio.h>
#include<math.h>
int main()
{
float x;
x=(float)cos(0);
printf("%f\n",x);
}
#4
laoyang103
2010-11-20 22:27
#include<stdio.h>
#include<math.h>
int main()
{
float x;
x=(float)cos(0);//这里是0吧
printf("%f\n",x);
return 0;//主函数返回值类型不是void
}
1