In this program fragment, I am able to derive the dimension of a vector, but how to display its contents?

typedef pair <double, double> point; ... ... vector<point> hull = convexHull(points); cout << (hull.size()) << endl; 

    1 answer 1

    Like that:

     for(auto p : hull) cout << "(" << p.first << "," << p.second << ") "; cout << endl;