Loading

摘要: 默认排序(降序排序) · 默认的priority_queue采用降序排序 priority_queue<int>pq; pq.push(3); pq.push(1); pq.push(2); while(!pq.empty()) { printf("%2d",pq.top()); pq.pop(); 阅读全文
posted @ 2021-11-29 23:28 柴承训 阅读(964) 评论(0) 推荐(0) 编辑