I know how to obtain the square root of a number using the sqrt function.
sqrt
How can I obtain the cube root of a number?
in C++11 std::cbrt was introduced as part of math library, you may refer
std::cbrt