1 #define _USE_MATH_DEFINES 2 #include<cmath>
加上上面这个就可以使用 M_PI 了,不行就使用下面这个:
1 #define _USE_MATH_DEFINES 2 #include<math.h>
( • ̀ω•́ )✧