问题

“You have to define _USE_MATH_DEFINES in the compiler settings!”
You have to define _USE_MATH_DEFINES in the compiler settings

解决方法

“项目属性 配置属性 C/C++ 预处理器”
在“预处理定义”中加入“_USE_MATH_DEFINES”。

相关文章: