c语言与c++用数学函数的细节 1.#include <cmath> 用在c++中要加上 using namespace std ; 2.#include<math.h> 一般用在c语言中 但c++也兼容这个 3.一定要分清楚头文件用的什么 #include<stdio.h> 是无法使用 #include <cmath>的