SHARE
TWEET

Circle class

Archon Dec 22nd, 2010 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Circle{
  2.    float area;
  3.    int radius;
  4.  
  5. public:
  6.    Circle(int r):
  7.    radius(r),
  8.    area(3.14 * r * r)
  9.    {}
  10. };
RAW Paste Data
Want to get better at C++?
Learn to code C++ in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top