Question: Here is the code, can you help me fix the errors#ifndef CIRCLE _ H #define CIRCLE _ H #include using namespace std; class Circle {

Here is the code, can you help me fix the errors#ifndef CIRCLE_H
#define CIRCLE_H
#include
using namespace std;
class Circle
{
private:
double radius;//radius of the circle
double * area;//area of the circle
double * circumference;//circumferencee of the circle
double pi=3.1415;// the value of pi
public:
Circle(){radius=0;area=new double;area=0;circumference= new double;}
void set_rad(double rad){radius = rad;};
double compute_area()
{*area =(pi*pow(radius,2.0));return *area;};
double compute_circumference()
{*(circumference+1)=2*pi*radius;return *circumference;}
double check_rad(double rad)
{if(rad>0 && rad!=0){return true;}else{return false;}};
~Circle();
};
#endif?Program received signal SIGSEcV, Segmentation fault.
Circle: :compute_area (this=0x614eb0) at circle.h:16
16
ow(radius,2.0)); return *area; };
(gdb)
Here is the code, can you help me fix the

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 Programming Questions!