This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
hf_naptar/evfordulo.cpp
2020-05-05 12:08:12 +02:00

13 lines
336 B
C++

#include "evfordulo.h"
bool Evfordulo::equal(const Datum &d) const{
return d.getEv() >= getEv() && getHonap() == d.getHonap() && getNap() == d.getNap();
}
int Evfordulo::napszam(int ev)const{
int n = ev * 365 + getNap() + szokoev();
for (int i = 0; i < getHonap() - 1; i++)
n += honap_napok[i];
return n;
}