/* * Copyright ©2020 Hal Perkins. All rights reserved. Permission is * hereby granted to students registered for University of Washington * CSE 333 for use solely during Spring Quarter 2020 for purposes of * the course. No other use, copying, distribution, or modification * is permitted without prior written consent. Copyrights for * third-party components of this work must be honored. Instructors * interested in reusing these course materials should contact the * author. */ #include #include #include "./Point.h" #include "./Rectangle.h" int main(int argc, char** argv) { const Point p1(0, 5); const Point p2(5, 0); const Rectangle r1(p1, p2); std::cout << "Rectnalge r1 has area " << r1.area() << std::endl; const Point p3(-15, -5); const Point p4(-5, -15); const Rectangle r2(p3, p4); std::cout << "Rectnalge r2 has area " << r2.area() << std::endl; }