我这么写的 为啥显示log10 和ln错误?#include "stdafx.h"
#include<iostream>
#include<cmath>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int n;
float x,y;
for(n=90;n<=100;n++)
{
cout<<n;
x=log10(n);
cout<<x;
y=ln(n);
cout<<y;
}
return 0;
}
参数类型为啥不对?应该改成什么?log函数表示什么?