使用 math.h 或 cmath 头文件中的对数函数,表达式 log(256) 的结果类型为 double、值约为 8.0。
math.h
cmath
log(256)
double
8.0
{{ select(1) }}
不区分大小写,点击图片可更换