diff --git a/Packages/Arrangement/examples/Sweep_line/example2.C b/Packages/Arrangement/examples/Sweep_line/example2.C index 9b0a4824e33..fae3b5171fc 100644 --- a/Packages/Arrangement/examples/Sweep_line/example2.C +++ b/Packages/Arrangement/examples/Sweep_line/example2.C @@ -41,25 +41,23 @@ typedef Traits::Curve Curve; typedef CGAL::Pm_default_dcel Dcel; typedef CGAL::Planar_map_2 PM; -using namespace std; - template void read_polylines(Container& curves) { int num_polylines = 0; NT x,y; - cin >> num_polylines; - std::cout<<"number of polylines is : " << num_polylines<> num_polylines; + std::cout << "number of polylines is : " << num_polylines << std::endl; while (num_polylines--) { Curve polyline; int num_points; - cin >> num_points; + std::cin >> num_points; while (num_points--) { - cin >> x >> y; + std::cin >> x >> y; Point s(x, y); polyline.push_back(s); @@ -80,7 +78,7 @@ int main(int argc, char* argv[]) CGAL::sweep_to_construct_planar_map(polylines.begin(),polylines.end(), pm); - cout<