我们如何将STL priority_queue用于struct?推送和弹出的任何插图,其中struct有多种数据类型? 说:struct thing { int a; char b;} glass[10];.现在我如何使用'int a'将此结构放在priority_queue上进行排序?
priority_queue
struct thing { int a; char b;} glass[10];
c++ struct priority-queue
c++ ×1
priority-queue ×1
struct ×1