#include<iostream>
#include<queue>
using namespace std;
struct Node{
Node(int s,int c)
{
x=s;
y=c;
}
int x;
int y;
};
bool operator<(Node a,Node b){
return a.x<b.x;
}
int main(){
Node d(3,2);
priority_queue<Node> temp;
temp.push(d);
temp.pop();
d=temp.top();
cout<<d.x<<endl;
}
返回来的结果是3,
怎么会有数据的,各位专家们解答一下