快排
#include <algorithm>
struct node
{
double x;
double y;
};
node nodexy[maxnum];
int cmp(node a,node b)
{
if(a.x<b.x)
return 1;
else if(a.x==b.x)
{
if(a.y<=b.y)
return 1;
else return 0;
}
return 0;
}
快排
#include <algorithm>
struct node
{
double x;
double y;
};
node nodexy[maxnum];
int cmp(node a,node b)
{
if(a.x<b.x)
return 1;
else if(a.x==b.x)
{
if(a.y<=b.y)
return 1;
else return 0;
}
return 0;
}