//rectangledriver.cpp //main method driver for the rectangle example //Alan C. Jamieson //COSC 251 //Spring 2013 //note use of " for programmer defined class #include #include "rectangle.h" //needed for simpler usage of cout, cin, endl using namespace std; int main(){ //rectangles - in order - default constructor, //default with new, pointer defined array, array rectangle r; rectangle *s = new rectangle; rectangle *parr = new rectangle[10]; rectangle p[10]; int x, y; cout<<"Enter height: "; cin>>x; cout<<"Enter width: "; cin>>y; //rectangle declaration with two parameter constructor rectangle q(x, y); //area prints, note the use of the indirection operator in the first cout<<"s's area "<area()<