#include #include #include using namespace std; class Point { public: double x; double y; bool operator < (const Point &p) const; Point(){} Point(double a,double b) { x=a; y=b; } friend std::ostream & operator << (std::ostream & o, const Point &p) ; }; std::ostream & operator << (std::ostream & o, const Point &p) { o< &v) { for(int i=0;i &v) { int n=v.size(); for(int i=0;i w; w.push_back(Point(1,3)); // w.push_back(Point(1,1)); // w.push_back(Point(2,1)); // w.push_back(Point(2,2)); // w.push_back(Point(3,1)); // w.push_back(Point(1,2)); // cout<<"Unsortiert."< cout<<"Sortiert."<