circleType::setRadius;
double radius = circle.getRadius;
The first line doesn’t do anything. The second line tries to set a variable of type double
equal to a function. Perhaps you want to call these functions?
This is what non-operator member function calls look like in C++:
double area = circle.areaCir(radius);
double circumferance = circle.circumCir(radius);
circle.printCir(circumferance, area);
So try this:
circle.setRadius();
double radius = circle.getRadius();
1
solved c++ pointer void function issue [closed]