C++复制struct node { int a,b; bool operator<(const node fjs)const { return a<fjs.a; //从大到小 } }; priority_queue<node> q;