vector按存储的结构体的某一字段排序

include include struct Person { string Name; string Sex; int Age; int High; Person() :Age(0) ,High(0) { } };web //定义比较函数 bool CmpAge(const Person& p1,const Person& p2) { return p1.Age < p2.Age;//小于号表示
相关文章
相关标签/搜索