c++中的log函数

引入#include<cmath>

以e为底:log(n)

以10为底:log10(n)

以m为底:log(n)/log(m)

原文地址:https://www.cnblogs.com/mcyushao/p/9383338.html