/* * @topic T00270 Serial Date class (Assignment a4) * @brief class SDate */ #ifndef _SDATE_H_INCLUDED_ #define _SDATE_H_INCLUDED_ class SDate { public: // Function to set calendar date. Returns: // -- false if given month/day/year are invalid // -- true if everything is okay. bool set( int month_, int day_, int year_ ) { return true; } //---------------------------------------------- // functions to manipulate serial value //---------------------------------------------- void serial( int serial_ ) // set serial date { } int serial() // get serial date { return 0; } void add( int days_ ) // add days to serial value { } //---------------------------------------------- // functions to change or get calendar parts: //---------------------------------------------- void month( int month_ ) // set month { } int month() // get month { return 0; } void day( int day_ ) // set day { } int day() // get day { return 0; } void year( int year_ ) // set year { } int year() // get year { return 0; } };//class SDate #endif //_SDATE_H_INCLUDED_