#include <math.h> sqrt(x); pow(x, n); M_PI:如果要使用math.h定义的pi,需要 #define _USE_MATH_DEFINES #include <math.h>