The following loop will never terminate and I can't for the life of me work out why not.
birthmonth=7 / thismonth=10
I put the cout<<y; to try to see but it just continually prints '9'.
Please help I am losing all my hair!Code:
if (birthmonth < thismonth)
for(int y=(birthmonth + 1);y = (thismonth-1);y++)
daysold = daysold + monthdays[y];