Question: #include #include #include using namespace std; class circle { public: int r; int cenx; int ceny; public: void Radiusfunction(double); void contfunction(double, double); double areafunction() const;

#include #include #include

using namespace std;

class circle { public: int r; int cenx; int ceny;

public: void Radiusfunction(double); void contfunction(double, double); double areafunction() const; double X() const; double y() const;

}; void circle::Radiusfunction(double Rcircle) { r = Rcircle; cout

} void circle::contfunction(double aforX, double bforY) {

cenx = aforX; ceny = bforY;

} double circle::areafunction() const {

return 3.14 * r * r;

} double circle::X() const { return cenx; } double circle::y() const { return ceny; } struct line { int x; circle t; }; class Intersection { circle a; private:

double r; double cenx; double ceny;

public: double setcircle(double,double,double); double setline(double,double); void getintersectpoints();

}; double Intersection::setcircle(double radius, double a, double b) { return (cenx * cenx - a * a) + (ceny * ceny - b * b) = radius * radius; } double Intersection::setline(double m, double b) { return m(cenx) + b; }

int main() { circle temp;

cout > temp.r; temp.Radiusfunction(temp.r);

return 0; }

%%%%%%%%%%%%%%%%%%%% learning about classes c++ here is my program = what am I doing wrong thanks

#include #include #include using namespace std; class circle { public: int r;

these are the instructions using classes

int cenx; int ceny; public: void Radiusfunction(double); void contfunction(double, double); double areafunction()

more instructions thanks - using classes- Find line that intersects circle

2- 2 (VU Skok. (a,s) Fun vn

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!