| constructors-point-rectangle/boiled-down-for-notes/prog.cc - Sample Rectangle constructions. | Lecture 4 - slide 6 : 41 Program 5 |
#include <iostream>
#include "rect.h"
using namespace std;
int main(){
Point p1(1,2), p2(5,-3);
Rectangle r1, // Use default constructor
r2(1,2,5,-3),
r3(p1,p2),
r4(Point(1,2), Point(5,-3));
// use of points and rectangles
}