1111如何进行开三次方的运算?

引入cmath库 然后进行pow函数的运用

                      double average = pow(a , 1.0/3.0);

这样就是相当于开了三次方根

2如何进行限定小数点??引入iomanip库 运用 setprecision函数

                #include <iostream>
                #include <cmath>
                #include <iomanip>

                using namespace std;
				int main(){
                int a = 114514;
                cin >> a;

                double average = pow(a , 1.0/3.0);

                cout << fixed <<setprecision(3) <<average *3.000;
                return 0;

            }