From 327bdefa15f8af59741dcb91a0d434d5b23b1ac8 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Sun, 17 Sep 2017 18:06:00 +0200 Subject: Flushing std::cout --- src/libvpsc/linesegment.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libvpsc') diff --git a/src/libvpsc/linesegment.h b/src/libvpsc/linesegment.h index caca3a2bb..ecf8800b0 100644 --- a/src/libvpsc/linesegment.h +++ b/src/libvpsc/linesegment.h @@ -103,21 +103,21 @@ void DoLineSegmentIntersection(const Vector& p0, const Vector& p1, const Vector& Vector intersection; std::cout << "Line Segment 0: (" << p0.x_ << ", " << p0.y_ << ") to (" << p1.x_ << ", " << p1.y_ << ")\n" - << "Line Segment 1: (" << p2.x_ << ", " << p2.y_ << ") to (" << p3.x_ << ", " << p3.y_ << ")\n"; + << "Line Segment 1: (" << p2.x_ << ", " << p2.y_ << ") to (" << p3.x_ << ", " << p3.y_ << ")" << std::endl; switch(linesegment0.Intersect(linesegment1, intersection)) { case LineSegment::PARALLEL: - std::cout << "The lines are parallel\n\n"; + std::cout << "The lines are parallel\n" << std::endl; break; case LineSegment::COINCIDENT: - std::cout << "The lines are coincident\n\n"; + std::cout << "The lines are coincident\n" << std::endl; break; case LineSegment::NOT_INTERSECTING: - std::cout << "The lines do not intersect\n\n"; + std::cout << "The lines do not intersect\n" << std::endl; break; case LineSegment::INTERSECTING: - std::cout << "The lines intersect at (" << intersection.x_ << ", " << intersection.y_ << ")\n\n"; + std::cout << "The lines intersect at (" << intersection.x_ << ", " << intersection.y_ << ")\n" << std::endl; break; } } -- cgit v1.2.3