Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <string>
- #include "iostream"
- #include "iomanip"
- #include <exception>
- #include "algorithm"
- #include "map"
- #include <vector>
- using namespace std;
- class Date{
- public:
- Date();
- Date(const int &y,const int &m,const int &d);
- void printDate() const;
- int getYear() const;
- int getMonth() const;
- int getDay() const;
- string getDate() const;
- int year;
- int month;
- int day;
- string sdate;
- };
- bool checkFormat(std::string str);
- //Date ParseDate(std::istringstream &sstr);
- Date ParseDate(istringstream& date_stream);
- Date ParseDate(istream &sstr);
- const bool operator < (const Date &arg1,const Date &arg2);
- const bool operator > (const Date &arg1,const Date &arg2);
- const bool operator <= (const Date &arg1,const Date &arg2);
- const bool operator >= (const Date &arg1,const Date &arg2);
- const bool operator == (const Date &arg1,const Date &arg2);
- const bool operator != (const Date &arg1,const Date &arg2);
- ostream &operator <<(ostream &ostr,const Date &dt);
Advertisement
Add Comment
Please, Sign In to add comment