Fill in the blanks (...)C++ homework #include using namespace std; class Date { public: ….. void setDate(int date_day, int date_month, int date_year){ //put the date ………………. } void getDate(){//show...


Fill in the blanks (...)C++ homework


#include
using namespace std;
class Date {
public:
…..


void setDate(int date_day, int date_month, int date_year){ //put the date
……………….
}


void getDate(){//show the date
………
}
}; // end class //...


int main()
{
int day,month,year;


cout<"please enter="" the="" currents="" day,="" month="" and=""><>
cout <"enter day:="">
cin >> day;
cout <"enter month:="">
cin >> month;
cout <"enter year:="">
cin >> year;


Date today;


today.setDate(day,month,year);
today.getDate();


Date yesterday;
yesterday.setDate(day-1,month,year);
cout<"yesterday>
yesterday.getDate();


return 0;
}



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here