Timelab/src/Date.cpp
void Date::setyear(int y){
	//does not allow negative years to be input
	if(y < 0) {
		cout<< "We don't believe in time before Christ" << endl;
		year = 0;
	}
	else{
		year = y;
	}
}
//set functions for the data members of the Date class to prevent illegal data entries

set functions for the data members of the Date class to prevent illegal data entries
set functions for the data members of the Date class to prevent illegal data entries
void Date::setyear(int y){
	if(y < 0) {
		cout<< "We don't believe in time before Christ" << endl;
		year = 0;
	}
	else{
		year = y;
	}
}
void Date :: setyear ( int y ) { if ( y < 0 ) { cout << " " << endl ; year = 0 ; } else { year = y ; } }
set functions for the data members of the Date class to prevent illegal data entries
set functions for the data members of the Date class to prevent illegal data entries
//does not allow negative years to be input
