摘要: #include#include#includeusing namespace std;struct node{ friend bool operatorq; node b[5]; for(int i=0;i<5;i++) { b[i].priority=5-i; b[i].value=i; } for(int i=0;i<5;i++) q.push(b[i]); for(int i=0;i<5;i++) { cout<<q.top().priority<<'\t'<<q.top().value<<endl; . 阅读全文
posted @ 2013-07-25 23:21 JKXQJ 阅读(202) 评论(0) 推荐(0) 编辑