I want to use the math constants, such as M_PI and M_E, in Visual C++ 2008. I assumed they were defined in the cmath header.
They are, but you also need to #define _USE_MATH_DEFINES before you #include <cmath>
#define _USE_MATH_DEFINES
#include <cmath>