【发布时间】:2010-04-23 14:44:17
【问题描述】:
可能重复:
C++ struct sorting
是否可以根据指定的排序方法在 C++ 中对向量进行排序,就像 Java 中使用 Comparator 的 Collections.sort 中使用的那样?
【问题讨论】:
标签: c++ sorting comparator
可能重复:
C++ struct sorting
是否可以根据指定的排序方法在 C++ 中对向量进行排序,就像 Java 中使用 Comparator 的 Collections.sort 中使用的那样?
【问题讨论】:
标签: c++ sorting comparator
是的。从今天早上看到这个问题的答案:C++ struct sorting
【讨论】:
是的,是的。以here 为例。
【讨论】: