unexpected end of file while looking for precompiled header directive 是什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/08 00:25:47
#include <stdio.h>
void main()
{
int i,n;
double x,sinx,t;
printf("please enter the avalues of x and n:");
scanf("%lf%d",&x,&n);
sinx=x;
t=x;
for(i=2;i<=n;i++)
{
t=t*(-1)x*x/(2i-2)*(2i-1);
sinx=sinx+t;
}
printf ("sinx=%lf",sinx);
}
请教高手指错啊

C语言还是C++啊?好久不见这种东东真头疼,问老师不就得了

这是一个初级C语言, 编写的是一个计算的程式。呵呵 我也就是只这点水平了,不过printf ("sinx=%lf",sinx); 表示的是输出答案

太难了,惭愧惭愧。