未声明M_PI error C2065: 'M_PI' : undeclared identifier

声明使用M_PI的默认方法为:

在stdafx.h头文件中声明.

#define _USE_MATH_DEFINES
#include <math.h>

posted @ 2015-03-16 13:20  双河子思  阅读(1490)  评论(0编辑  收藏  举报