#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刪除。