#include #include "cylinder.h" using namespace std; int main ( ) { // height = 1.9, radius = 2.5, x = 3.5, y = 0.1 Cylinder cylinder ( 1.9, 2.5, 3.5, 0.1 ); cout << endl << endl; cout << "Testing the constructor with get functions..." << endl; cout << "Test 1: GetX = " << cylinder.getX ( ) << endl; cout << "Test 2: GetY = " << cylinder.getY ( ) << endl; cout << "Test 3: GetRadius = " << cylinder.getRadius ( ) << endl; cout << "Test 4: GetArea = " << cylinder.getArea ( ) << endl; cout << "Test 5: GetHeight = " << cylinder.getHeight ( ) << endl; cout << "Test 6: GetVolume = " << cylinder.getVolume ( ) << endl; cout << endl << endl; // Changing the X and Y points cylinder.resetValues ( 5.9, -19.7 ); // Changing the radius cylinder.resetRadius ( 96.5 ); // Changing the height cylinder.resetHeight ( 5.6 ); cout << "Testing the reset functions..." << endl; cout << "Test 7: GetX = " << cylinder.getX ( ) << endl; cout << "Test 8: GetY = " << cylinder.getY ( ) << endl; cout << "Test 9: GetRadius = " << cylinder.getRadius ( ) << endl; cout << "Test 10: GetHeight = " << cylinder.getHeight ( ) << endl; cout << "Test 11: GetArea = " << cylinder.getArea ( ) << endl; cout << "Test 12: GetVolume = " << cylinder.getVolume ( ) << endl; cout << endl << endl; // testing operator overloading cout << "Test 13: operator overloading" << endl; cout << cylinder; cout << endl << endl; return 1; }