开发者

C++ change sort method [duplicate]

开发者 https://www.devze.com 2022-12-28 11:42 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: C++ struct sorting Is it possible to sort a vector in C++ according to a specified sorting method, l开发者
This question already has answers here: Closed 12 years ago.

Possible Duplicate:

C++ struct sorting

Is it possible to sort a vector in C++ according to a specified sorting method, l开发者_运维问答ike used in Java's Collections.sort that takes a Comparator?


Yes. See the answers to this question from this morning: C++ struct sorting


Yes, it is. Take a look here for an example.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号