【发布时间】:2013-03-24 17:56:07
【问题描述】:
我们如何将 STL priority_queue 用于 struct ?
任何 illustration 的 push & popping ,其中 struct 有多种数据类型?
说:struct thing { int a; char b;} glass[10];。
现在我如何使用“int a”将这个结构放在priority_queue 上进行排序?
【问题讨论】:
标签: c++ struct priority-queue