Join 150,163 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,384 people online right now. Registration is fast and FREE... Join Now!
anyway, to calculate the square root of a value, add the library cmath: #include <cmath>, and use the function sqrt(value). To calculate the cube root of a value, use pow(value, 1.0/3.0).