I am working with a dateType class and need to make a function to show next day and the previous day. I have my function set using const keyword so that it can't be changed by users, but now I can't increase my day. help???
int dateType::nextDay() const
{
getDay();
dDay++;
return dDay;
}
int dateType::previousDay() const
{
getDay();
dDay--;
return dDay;
}