#include #include #include using namespace std; class date { static const int length[12 + 1]; static const string french_month[12]; static const int subscript; int year; int month; int day; public: enum month_type { january = 1, february, march, april, may, june, july, august, september, october, november, december }; date(int initial_month, int initial_day, int initial_year); friend ostream& operator<<(ostream& ost, const date& d); friend ostream& revolutionary(ostream& ost) { ost.iword(subscript) = 1; return ost; } friend ostream& nonrevolutionary(ostream& ost) { ost.iword(subscript) = 0; return ost; } static bool get_format(ostream& ost); static ostream& set_format(ostream& ost, bool b); };