From 0ccdbd6f9ca4f70bd0db17c893fdc40b4b95026e Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 27 Aug 2014 12:23:00 +0200 Subject: [PATCH] Send the points of the hello world example to std::cout. Approved by the release manager --- Convex_hull_2/examples/Convex_hull_2/array_convex_hull_2.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Convex_hull_2/examples/Convex_hull_2/array_convex_hull_2.cpp b/Convex_hull_2/examples/Convex_hull_2/array_convex_hull_2.cpp index 6d58f8fc0aa..ddb6c0257d7 100644 --- a/Convex_hull_2/examples/Convex_hull_2/array_convex_hull_2.cpp +++ b/Convex_hull_2/examples/Convex_hull_2/array_convex_hull_2.cpp @@ -11,6 +11,9 @@ int main() Point_2 result[5]; Point_2 *ptr = CGAL::convex_hull_2( points, points+5, result ); - std::cout << ptr - result << " points on the convex hull" << std::endl; + std::cout << ptr - result << " points on the convex hull:" << std::endl; + for(int i = 0; i < ptr - result; i++){ + std::cout << result[i] << std::endl; + } return 0; }