gpt4 book ai didi

math - 如何在 Visual C++ 2008 中访问数学常量(例如 M_PI)?

转载 作者:行者123 更新时间:2023-12-03 11:16:34 26 4
gpt4 key购买 nike

我想在 Visual C++ 2008 中使用数学常量,例如 M_PI 和 M_E。我假设它们是在 cmath header 中定义的。

最佳答案

They are ,但您还需要#define _USE_MATH_DEFINES在你之前#include <cmath>

关于math - 如何在 Visual C++ 2008 中访问数学常量(例如 M_PI)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/806145/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com