运算符重载 struct data { int x,y; bool operator < (const data &a) const { return x<a.x; //x小的放前面 } }m[10101];