12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #include<iostream>
- #include <string>
- //êåñëè þçàþ ñëîâàðè - íàäî äîêàçàòü
- using namespace std;
- const char MONTHS[12][80] = { {"January"},{"Febuary"},{"March"},{"April"},{"May"},{"June"},{"July"},{"August"},{"September"},{"October"},{"November"},{"December"} };
- const char DAYS[7][80] = { {"Monday"},{"Tuesday"},{"Wednesday"},{"Thursday"},{"Friday"},{"Saturday"},{"Sunday"} };
- #pragma once
- class date
- {
- private:
- unsigned long long julian;
- void date_split(char word[], char splitter);
- void date_words(char word[]);
- void create_from_numbers(int, int, int);
- void date_from_julian();
- public:
- int day, month, year;
- void week_day();
- char actual[];
- date();
- date(char word[]);
- date(int year, int month, int date);
- const date& get_dates_year_easter();
-
- const unsigned long long& operator - (const date& d);
-
- const bool& operator<(const date& d);
- const bool& operator>(const date& d);
- const bool& operator>=(const date& d);
- const bool& operator<=(const date& d);
- const bool& operator==(const date& d);
- friend ostream& operator <<(ostream& os, date& d);
- };
- class date_exception {
- };
|