Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #ifndef CIRCLEH_H_INCLUDED
  2. #define CIRCLEH_H_INCLUDED
  3. #include <math.h>
  4. #include <iostream>
  5. #include <string>
  6. using namespace std;
  7. class Circle{
  8. public:
  9.  
  10. Circle( double centerY, double centerX, double Radius)
  11. {
  12. _centerX = centerX;
  13. _centerY = centerY;
  14. _radius = Radius;
  15. _area = pow(Radius,2)*M_PI;
  16. }
  17.  
  18. double GetArea()
  19. {
  20. return _area;
  21. }
  22.  
  23. protected:
  24. double _centerX, _centerY, _radius, _area;
  25.  
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement