#include #include #include "date.h" using namespace std; inline void print() {cout << "the global print\n";} const double july = 80.5; //Fahrenheit int main() { date d1(date::july, 4, 1776); date d2(date::october, 29, 1929); date d3(date::december, 7, 1941); date d4(date::july, 20, 1969); date d5(date::september, 11, 2001); cout << d1.july << "\n" //the member july << d2.july << "\n" //the member july << date::july << "\n" //better way to say the member july << july << "\n"; //the non-member july in line 7 print(); //the non-member print in line 6 d1.print(); //the member print cout << "\n"; d2.print(); cout << "\n"; d3.print(); cout << "\n"; d4.print(); cout << "\n"; d5.print(); cout << "\n"; return EXIT_SUCCESS; }