ImbaCow / OOP

Repo for object oriented programming
0 stars 0 forks source link

Замечания по FindMaxEx #14

Open alexey-malov opened 5 years ago

alexey-malov commented 5 years ago
struct Human
{
    std::string fio;
    size_t height;
    size_t weight;

    static bool lessHumanHeight(Human first, Human second)
    {
        return first.height < second.height;
    }

    static bool lessHumanWeight(Human first, Human second)
    {
        return first.weight < second.weight;
    }
};