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

帮忙觅错

2013-01-04 
帮忙找错帮忙找错#include stdio.h#include math.hint main(){float xx log 90printf(%f\n, x)

帮忙找错
帮忙找错
#include <stdio.h>
#include <math.h>

int main()
{
        float x;
        x = log 90;
        printf("%f\n", x);
        return 0;
}

[解决办法]


#include <stdio.h>
#include <math.h>

int main()
{
  double x;
  x = log(90);
  printf("%lf\n", x);
  return 0;
}

[解决办法]
x = log 90;  改成 x = logl(90);
[解决办法]
float x;
x = log 90;
上面两句改为:
double x;
x = log(90)

热点排行
Bad Request.