main.cpp 319 B

123456789101112131415161718192021222324
  1. #include <iostream>
  2. #include "point.h"
  3. #include "cLine.h"
  4. int main()
  5. {
  6. cPoint point1 (2, 0);
  7. cPoint point2 (4, 6);
  8. cPoint point3 (4, 6);
  9. cPoint point4 (8, 77);
  10. //point2.show ();
  11. cLine lin1 (point1, point2);
  12. lin1.show ();
  13. cLine lin2 (3, 6);
  14. lin1.parallel_me(lin2);
  15. return 0;
  16. }