#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< void print(vector &v) { for(int i=0;i void swapme(T &i, T &j) { T tmp; tmp=i; i=j; j=tmp; } template void bubblesort(vector &v) { int n=v.size(); for(int i=0;i v; v.push_back(1); v.push_back(2); v.push_back(4); // 1 v.push_back(5); v.push_back(3); v.push_back(6); cout<<"Unsortiert."< w; w.push_back(Point(1,3)); // 1 w.push_back(Point(1,1)); // 1 w.push_back(Point(2,1)); // 1 w.push_back(Point(2,2)); // 1 w.push_back(Point(3,1)); // 1 w.push_back(Point(1,2)); // 1 cout<<"Unsortiert."< cout<<"Sortiert."<