<<< User-defined type | Index | Overloaded operator << >>> |
The implementation of Date class uses previously defined serial date conversion functions:
#include <iostream> int serial_julian_date( int Month, int Day, int Year ); int serial_2_month( int nDate ); int serial_2_day( int nDate ); int serial_2_year( int nDate ); class Date { // member variables int serial_date; public: // member functions void set_date( int month, int day, int year ); int get_month(); int get_day(); int get_year(); };
<<< User-defined type | Index | Overloaded operator << >>> |