Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
piOS X 10.8 上是否有 const 的替代品?
pi
当我使用它时,我收到以下警告:
'pi' is deprecated: first deprecated on Mac OS X 10.8
它有效,但我想摆脱那个警告。
尝试包括math.h,它定义了 C 标准库宏M_PI。
math.h
M_PI