consolidate all repos to one for archive

This commit is contained in:
2025-01-28 13:46:42 +01:00
commit a6610fbc7a
5350 changed files with 2705721 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#ifndef NALOGA0201_DATE_H
#define NALOGA0201_DATE_H
#include <string>
class Date {
friend std::ostream &operator<<(std::ostream &out, const Date &date);
private:
unsigned int day, month, year;
int months[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
public:
Date() = default;
Date(unsigned int day, unsigned int month, unsigned int year);
~Date() = default;
std::string toString() const;
bool operator==(const Date &other) const;
Date& operator++();//prefix ++a
Date operator++(int dummy);//postfix a++
Date operator+(int day);
};
#endif //NALOGA0201_DATE_H