12345678910111213141516171819 |
- #include "Circle.h"
- #include <iostream>
- using namespace std;
- int main() {
- Circle c(23, 24, 5);
- struct Point p;
- p.x = 3.5;
- p.y = 5.6;
- Circle c2(p, 5.0);
- cout << c.calc_area() << endl;
- cout << c.calc_perimiter() << endl;
- c.name();
- cout << "c2 " << c2.calc_area() << endl;
- cout << "c2 " <<c2.calc_perimiter() << endl;
- c2.name();
- return 0;
- }
|