#include <math.h> //平方 pow() int a = pow(4,2);// 4的平方=16 //开方 int b = pow(4,0.5);// 4的平方根=2 int c = sqrt(4);// 4的平方根=2 //整数绝对值 int c = abs(b-c); //浮点数绝对值 double d = fabs(b-c); https://blog.csdn.net/u010412858/article/details/82633359
#include <math.h> //平方 pow() int a = pow(4,2);// 4的平方=16 //开方 int b = pow(4,0.5);// 4的平方根=2 int c = sqrt(4);// 4的平方根=2 //整数绝对值 int c = abs(b-c); //浮点数绝对值 double d = fabs(b-c); https://blog.csdn.net/u010412858/article/details/82633359
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。