本文共 138 字,大约阅读时间需要 1 分钟。
c语言可以通过调用#include <math.h>头文件实现开平方与求幂次
a=sqrt(表达式); //开平方
a=pow(表达式,要求的幂次) //求幂次
a=sqrt(pow(x1-x2,2)+pow(y1-y2,2)); //求两点间距离(x1,y1)(x2,y2)
转载地址:http://qwqof.baihongyu.com/