1

I have vector of pointers to the objects. These objects have 2 properties, lets say: int strenght and int age. I want to sort this vector by int strenght but if there are same objects with the same int strenght then these obcjects should be sorted by int age. How can I do this in C++?

SigGP
  • 519
  • 1
  • 8
  • 19

0 Answers0