Rectangle( int upperLeftX, int upperLeftY, int lowerRightX, int lowerRightY ):
myUpperLeft(new Point(upperLeftX,upperLeftY)),
myLowerRight(new Point(lowerRightX,lowerRightY))
{}
try
{
cout << "Begin round 1..." << endl;
auto_ptr<Point> pUL(new Point(0,0));
auto_ptr<Point> pLR(new Point(20,30));
Rectangle myRectangle(pUL, pLR);
int w = myRectangle.GetWidth();
int h = myRectangle.GetHeight();
cout << "the Rectangle is " << w << " by " << h << endl;
cout << "the upper left point x is " << pUL->GetX() << endl;
cout << "the lower right point x is " << pLR->GetX() << endl;
}
catch ( myException & e )
{