rectangle_main.cpp 224 B

12345678910111213
  1. #include "Rectangle.h"
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. Rectangle r(0, 0, 0, 1, 1, 1, 1, 0);
  7. cout << r.calc_area() << endl;
  8. cout << r.calc_perimiter() << endl;
  9. r.name();
  10. return 0;
  11. }