I've been looking for a way to calculate a future calendar date in C++, but so far no dice.
Basically I want to add 3 days (for standard delivery) OR add one day (for overnight delivery) to the CURRENT time (printed in MM-DD-YYYY format). How do I do this simply in C++?
Output would look like this:
1 2 3 4 5 6 7 8 9
Would you like overnight delivery [Y/N]? Y
Today's Date: 03-25-2017
Your Expected Arrival Date: 03-26-2017
Would you like overnight delivery [Y/N]? N
Today's Date: 03-25-2017
Your Expected Arrival Date: 03-28-2017
Hmm...maybe I'm overreaching, but is there a way to do this such that the computer retrieves and displays the current date for you and the projected date in the same format? Ideally...I would not have to manually input the current date into the machine.