pow

頭文件:#include <math.h> pow() 函數用來求 x 的 y 次冪(次方),其原型爲:     double pow(double x, double y); pow()用來計算以x 爲底的 y 次方值,而後將結果返回。設返回值爲 ret,則 ret = x y。 可能致使錯誤的狀況: 若是底數 x 爲負數而且指數 y 不是整數,將會致使 domain error 錯誤。 若是底
相關文章
相關標籤/搜索