fork download
  1. #ifndef QUADRILATERAL_H_INCLUDED
  2. #define QUADRILATERAL_H_INCLUDED
  3. #include "point.h"
  4.  
  5. class Quadrilateral:public Point
  6. {
  7. protected:
  8. Point a;
  9. Point b;
  10. Point c;
  11. Point d;
  12. void validate();
  13. public:
  14. Quadrilateral();
  15. Quadrilateral(Point &p1, Point &p2, Point &p3, Point &p4);
  16. void SetA(Point &p1);
  17. void SetB(Point &p2);
  18. void SetC(Point &p3);
  19. void SetD(Point &p4);
  20. void SetAll(Point &p1, Point &p2, Point &p3, Point &p4);
  21. Point GetA(void) const;
  22. Point GetB(void) const;
  23. Point GetC(void) const;
  24. Point GetD(void) const;
  25. double Perimeter();
  26. double Area();
  27. void Print();
  28. };
  29. #endif
  30.  
  31.  
  32.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:19: fatal error: point.h: No such file or directory
 #include "point.h"
                   ^
compilation terminated.
stdout
Standard output is empty