鹿鼎记精校版微盘:c++ 的平方根函数是什么? 需要include 什么?
来源:百度文库 编辑:高考问答 时间:2024/05/16 03:51:37
也可以用pow(x,0.5)
#include <math.h> //数学函数调用
sqrt(); //求某数的平方根
sqrt()
#include <math.h>
sqrt()
math.h
也可以用pow(x,0.5)
#include <math.h> //数学函数调用
sqrt(); //求某数的平方根
sqrt()
#include <math.h>
sqrt()
math.h