error C2512: no appropriate default constructor available

后端 未结 4 1893
栀梦
栀梦 2021-01-17 09:26

I am getting this annoying error and I don\'t know why =( ! This is the question , I solved it but I am having a problem with the constructor.

Write a

4条回答
  •  忘掉有多难
    2021-01-17 10:19

    This line invokes a constructor with no arguments (known as default constructor):

    Circle C;
    

    The only constructor you have defined is:

    Circle(double);
    

    Hopefully this should point you in the right direction.

提交回复
热议问题