青岛海尔并购ce案例:请问 c语言 sqrt()函数运行时出现 do main error 是什么原因?
来源:百度文库 编辑:高考问答 时间:2024/05/10 06:24:01
谢谢了 这种运行错误我还是第一回遇到
函数名: sqrt
功 能: 计算平方根
用 法: double sqrt(double x);
程序例:
#include <math.h>
#include <stdio.h>
int main(void)
{
double x = 4.0, result;
result = sqrt(x);
printf("The square root of %lf is %lf\n", x, result);
return 0;
}
有兴趣,把你有错的代码给贴出来!
我运行了是正常的啊..........
这个程序错得有得离谱啊?