So I have an assignment to make a program that calculates the today's date. It also has to calculate tomorrow's and yesterday's. I have the bulk of the program written correctly I think, I just can't figure out how on earth to write the yesterday and tomorrow methods. Can you guys give me something to start out with or any tips or help? Thank you!
#pragma once
#include <iostream>
#include <string>
usingnamespace std;
class Date
{
public: // access specifiers interface is designed here
Date(int=1,int=1,int=1900); // default constructor
void print_date() const; // method to print the date
void print_military_date(); // i.e. 4-January-2016 or 4-Jan-16
void print_full_date(); // i.e. Wednesday, March 16, 2016
void yesterday();
void tomorrow();
~Date(void); // destructor
private:
bool leapyear(int); // private method only used within the class
int month, day, year, dow; // data members
string day_string, month_string;
void calc_dow();
void get_day_of_week();
};