stl priority_queue von C ++ mit struct
Wie können wir STL verwendenpriority_queue
für struct? IrgendeinIllustration von push & popping, wo struct mehrere datentypen hat
Sagen :struct thing { int a; char b;} glass[10];
.
Wie kann ich nun diese Struktur mit 'int a' für die Bestellung auf priority_queue setzen?