#include<iostream>
#include<string>
#include<list>
using namespace std;
class Person
{
public:
Person(string name, int age, int height)
{
m_Name = name;
m_Age = age;
m_Height = height;
}
string m_Name;
int m_Age;
int m_Height;
};
bool sortperson(Person &p1,Person &p2)
{
if (p1.m_Age == p2.
c++list容器简单实现排序
最新推荐文章于 2024-03-22 01:40:31 发布