首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

c初学者,又来麻烦大家了

2012-03-19 
c菜鸟,又来麻烦大家了#includestdafx.h #includestdio.h #includemath.h #includestdlib.h voidma

c菜鸟,又来麻烦大家了
#include   "stdafx.h "
#include   "stdio.h "
#include   "math.h "
#include   "stdlib.h "
void   main()
{
double   x,y;
                  scanf( "%f ",&x);
                  y=acos(x);
printf( "%f ",y);
system( "pause ");
}
为什么无论输入什么1到-1之间的数都返回-1.#INDOO  
不懂,请教大家

[解决办法]
scanf( "%f ",&x);
==》
scanf( "%lf ",&x);
[解决办法]
用的什么编译器

[解决办法]
有人回复

热点排行