#include #include "Angle.h" using namespace std; Angle::Angle(int d, int m, int s) { totalSeconds = (d * 3600) + (m * 60) + s; cout << "Angle created: " << d << "d " << m << "m " << s << "s\n"; } Angle::~Angle() { // Empty destructor for now } void Angle::display() const { int d = totalSeconds / 3600; int m = (totalSeconds % 3600) / 60; int s = totalSeconds % 60; cout << d << "d " << m << "m " << s << "s"; } int difference(const Angle& a1, const Angle& a2) { // Far easier than comparing D, M, and S individually! return a1.totalSeconds - a2.totalSeconds; }