#include #include "dates.h" using namespace std; void greet() { cout << "Hello\n"; } class frenchdate: public date { public: void print(ostream & out) const // I can't remember all the names { string months[] = { "Janvier", "Fevrier", "M", "avril", "Mai", "J", "Juillet", "Aout", "Septembre", "Oct", "Nov", "Dec" }; string days[] = { "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi" }; out << days[dow] << " " << day << " " << months[month - 1] << " " << year << "\n"; } frenchdate(): date() { } }; ostream & operator<<(ostream & out, const frenchdate & d) { d.print(out); return out; } int main() { greet(); cout << "\nStarting the test\n"; frenchdate x; cout << "Today is " << x << "\n"; x += 1; cout << "Tomorrow will be " << x << "\n\n"; }