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);
[解决办法]
用的什么编译器
[解决办法]
有人回复