How can I obtain the cube root in C++?

后端 未结 8 1961
你的背包
你的背包 2020-12-09 02:12

I know how to obtain the square root of a number using the sqrt function.

How can I obtain the cube root of a number?

8条回答
  •  不思量自难忘°
    2020-12-09 02:59

    1. sqrt() is not an operator.
    2. You cannot overload sqrt().

    Please explain why do you need to overload sqrt() so we can help you to do what you want.

提交回复
热议问题