求函数值的
#include <stdio.h>#include <math.h>
void main()
{
double x , s;
printf("input number:\n");
scanf("%1f",&x);
s = sin(x);
printf("sin of %1f is %1f\n",x,s);
}
求不到值,input number:
20
sin of -92559604377396321000000000000000000000000000000000000000000000.000
0.073876
Press any key to continue
一直是这样
输入、输出的格式“%1f”应为“%lf” hfut_wangfei 发表于 2014-7-14 09:03
输入、输出的格式“%1f”应为“%lf”
谢谢,确实是我搞错了
页:
[1]