I'm an Oracle programmer that got handed a C++ program to do.
The last C++ program I wrote was about 5 years ago in Unix. Now I'm in MS V C++. My problem is - I need to "walk through" the calendar between two dates. For example, I need to put into an array a date for every business day between September 1, 2003 and February 1, 2004. I have a function built using the %w format on tm struct to return day of week. But, how do I increment tm_mday one day and have it change the month/year when needed? Is there an "Add_Day" type of function out there to increment a tm struct? Or has someone written one?