C++如何开n次方 #include <iostream> #include <cmath> using namespace std; typedef long long LL; int main() { LL a = 625; LL s = pow(a,1.0/4); cout<<"pow开方:"<<s<<endl; return 0; }