00001 // File: Year.h 00002 // Simple class for Year; days count improved 00003 // Prepared by Dr. Spiegel 00004 00005 #ifndef _YEAR 00006 #define _YEAR 00007 00014 class Year { 00015 00016 public: 00020 Year(); 00021 00028 Year(int monthVal,int dayVal,int yearVal); 00029 00035 static int getDaysInYear(); 00036 00041 virtual int daysElapsed(); 00042 00047 static double percentOfYear(int daysElapsed); 00048 00054 static bool isLeapYear(int Year); 00055 00056 protected: 00057 int month,day,year; 00058 static int daysInYear; 00059 00060 }; 00061 00062 #endif