sort结构体是不是默认以第一个变量排序,要bool operator! 例子:struct Cow { int a; int w; int s; bool operator< (const Cow &W)const { return a < W.a; } }cow[N];