i have created a class ov date in address book ,, i want the the days and months to be checked ,,whether for a specific month the days are in limits are not
so i have done this thing in the print function,, here is the code
Code:switch(month)
{
case 1:
if (day>31)
{
day=day-31;
month=month+1;} //so if the days are greater then 31 so i want it to switch //to next case,, but i dun know how to do this
else
cout<<"January-";
break;