使用 math.h 或 cmath 头文件中的函数,表达式 cos(60) 的结果类型为 double、值约为 0.5。
math.h
cmath
cos(60)
double
0.5
正确 √
错误 ×