#include #include "ch2401_date.h" #include "ch2402_date.cxx" using namespace std; void f() { date d1; date d2(11,2,1952); date d3(d2); d1.print(); d2.print(); d3.print(); for (int yy=1895;yy<1910;yy++) for ( int mm=-2;mm<4;mm++) for (int dd=25;dd<33;dd++) { d1.set(dd,mm,yy); d1.print(); } } int main() { cout << " Before call to f" << endl; f(); cout << " After call to f" << endl; // dummy read inserted as the default in some versions of // Visual studio are to close the console window int i; cout << " Type any character to end the program: "; cin >> i; return(0); }