This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ESGRAF48/source/Age.h

23 lines
367 B
C++

#pragma once
#include <QDate>
class Age
{
private:
unsigned int m_years = 0;
unsigned int m_months = 0;
public:
Age() = default;
Age(unsigned int years, unsigned int months);
Age(const QDate &birth, const QDate &reference);
bool operator<(const Age &cmp) const;
unsigned int years() const;
unsigned int months() const;
std::string toString() const;
};