CS计算机代考程序代写 // from: Savitch. Absolute C++.

// from: Savitch. Absolute C++.

#include
#include “DayOfYear.h”
using namespace std;

int main()
{
DayOfYear canadianDay;
canadianDay.set(7, 1);
canadianDay.output();

DayOfYear *ptrNewYear;
ptrNewYear = new DayOfYear();
ptrNewYear->set(1, 1);
ptrNewYear->output();

const DayOfYear newYear(1, 1);
newYear.output();

DayOfYear customDayOfYear;
customDayOfYear.input();
customDayOfYear.output();

cout << "Compared to canadian day " << customDayOfYear.compareAnotherDayOfYear(canadianDay) << endl; }

Leave a Reply

Your email address will not be published. Required fields are marked *