未声明M_PI error C2065: 'M_PI' : undeclared identifier时间:2022-05-10 07:20:44声明使用M_PI的默认方法为: 在stdafx.h头文件中声明. #define _USE_MATH_DEFINES #include <math.h>