finding cube root in C++?

后端 未结 12 619
自闭症患者
自闭症患者 2020-12-03 15:18

Strange things happen when i try to find the cube root of a number.

The following code returns me undefined. In cmd : -1.#IND

cout<

        
12条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 15:41

    I think you should not confuse exponentiation with the nth-root of a number. See the good old Wikipedia

提交回复
热议问题