class n object

Hi...
with #define macro how can use Pi ..like
Default Constructor which should initialize radius of the circle with value 0.

User Defined Constructor which takes class data member radius as its parameter.
Declare a public member function named CalculateArea() which calculates the area of the circle. The formula for calculating the area is .

Declare a public member function named CalculateCircum() which calculates the circumference of the circle. The formula for calculating the circumference is .

Declare a public member function named Display which will display the calculated area and circumference of the circle on the output screen.

In the main() function, declare two objects of type Circle:

One using default constructor
Second using user-defined constructor.

It should be Display the area and circumference of the circle on the screen.

What?
I'll reply to the line I actually understood:

Default Constructor which should initialize radius of the circle with value 0.
1
2
3
struct Circle {
  Circle() : radius(0) {}
};
means...??? Athar??
Topic archived. No new replies allowed.