#include <cmath> double pow( double base, double exp );
pow() 函式返回 base 的 exp 次方。如果 base 為零且 exp 小於或等於零,則出現域錯誤。如果 base 為負數且 exp 不是整數,則也會出現域錯誤。如果發生溢位,則會出現範圍錯誤。