为什么这个程序无法运行?
#include<stdio.h>
int main()
{
printf("%f\n", log(36.0));
return 0;
}
最佳答案
您必须包含
#include<math.h>
这是因为math.h是C语言标准库中为基本数学运算而设计的头文件。
关于c - log() 调用的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28978825/