在使用 C++ 语言编写程序时,不能使用 sqrt、abs 等数学函数,包含 <cmath> 或 <math.h> 头文件后就能够使用了。
sqrt
abs
<cmath>
<math.h>
正确 √
错误 ×