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