Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- #include <exception>
- #include <string>
- #include <iomanip>
- #include <sstream>
- using namespace std;
- class Date
- {
- public:
- Date();
- Date(int year, int month, int day);
- string DateToStr() const;
- int getYear() const;
- int getMonth() const;
- int getDay() const;
- private:
- int _Year, _Month, _Day;
- };
- Date ParseDate(istream& is);
- ostream& operator<<(ostream& os, const Date& _Date);
- ostream& operator<<(ostream& os, const pair <Date, string>& _Pair);
- bool operator<(const Date& _Left, const Date& _Right);
- bool operator<=(const Date& _Left, const Date& _Right);
- bool operator>(const Date& _Left, const Date& _Right);
- bool operator>=(const Date& _Left, const Date& _Right);
- bool operator==(const Date& _Left, const Date& _Right);
- bool operator!=(const Date& _Left, const Date& _Right);
Advertisement
Add Comment
Please, Sign In to add comment