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
  • 716
  • 1
  • 11
  • 24

0 Answers0