My class object does not print the correct value of a class variable

前端 未结 0 686
class NewtonsSqrt
{
public:
    double root;
    int steps;

    NewtonsSqrt() :
        sqrt {-1},
        steps { 0 }
    {};

    double Compute(double a)
    {
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题