circle.cpp eas230

circle.cpp eas230 - cout << circle1.getArea()...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include "Circle.h" using namespace std; int main( ) { Circle circle1(2.0); cout << "circle1 radius: " << circle1.radius << endl; Circle circle2(5.0); cout << "circle2 radius: " << circle2.radius << endl; Circle circle3(10.0); cout << "circle3 radius: " << circle3.radius << endl; Circle circle4(50.0); cout << "circle4 radius: " << circle4.radius << endl;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout << circle1.getArea() << " " << circle1.getCircumference() << endl ; cout << circle2.getArea() << " " << circle2.getCircumference() << endl; cout << circle3.getArea() << " " << circle3.getCircumference() << endl; cout << circle4.getArea() << " " << circle4.getCircumference() << endl; }...
View Full Document

This document was uploaded on 12/05/2011.

Ask a homework question - tutors are online