Hello all just started an account. I have a fun question that is an end of an inherited class. I am trying to return the day of the week using time structures. However, I cannot get the correct date from two different structures, even if they are declared as different structures. So, when I check the number of the week, the two provided to check with are the same.
point is: They keep coming up as the same.
bool Weekly::occurs_on(int year, int month, int day)
{
//if it doesn't pass then return false
return false ;
}
nummy and mum can't always be the same.... yet they are......... even if you create a different set of structures. they need to create their own times....
int lol1 = get_it().tm_year - 1900 ; // Why this? Isn't it already without 1900?
int lol2 = get_it().tm_mday ;
int lol3 = get_it().tm_mon - 1 ; // And this?