I need to make a member function nextday to increment the day by one. The Date object should always remain in a consistant state. Need code that tests the nextday function in a loop that prints the date during each iteration of the loop to illustrate that the nextday function works correctly. Have to test incrementing into the next month and next year.

What are you testing for? Valid days/months, etc? If so, just call that validating function. Can you put the loop in main, instead of the class? It seems like you know how to do a loop.
I'd say either put the loop in main, or if not, in the nextday function. In the loop increment, call the checkDay function, then the print function. You'll have to pick some arbitrary amount of times to loop, or some arbitrary event. Looping 367 times would be sure to hit the next year increment if you started with January first of some year, or 33 times if you start with the end of November.

11-12-2001

C++Newbie

Thank you for your reply!!!!

Yes i am cheking for valid days and months, but i can't figure out how to set up my loop in main. I think that as the loop cycles through I have to pass the values to the increment function.

I tried but my output only made it to Febuary!! I'm new at programming this is my second class. Not to good with control structures.