#include #include #include "date.h" using namespace std; int main() { date today; int i = today; //int i = today.operator int(); cout << "The original date "; today.print(); cout << " converted to int is " << i << ".\n\n"; date d = i; cout << i << " converted back to date is "; d.print(); cout << "\n"; cout << i << " converted back to date is "; static_cast(i).print(); //date(i).print(); cout << "\n"; cout << i << " converted back to date is "; date(i).print(); cout << "\n"; return EXIT_SUCCESS; }