/********************************************************************************************
example 8 -- timetest.cpp
    Developing the military time class
********************************************************************************************/
#include <iostream>
using namespace std;

#include "miltime.h"

void paces(miltime& mt);

void main() {
    //no arguments
    miltime mtTest;
    paces(mtTest);

    //create using arguments
    miltime mtTest2(3,15); //3:15 am
    paces(mtTest2);
    
    cout << "Add the first to the second: ";
    mtTest2.addSame(mtTest);
    cout << mtTest2 << endl;

    cout << "Set a third equal to the sum of the first two: ";
    miltime mtTest3 = mtTest2 + mtTest;
    cout << mtTest3 << endl;

}


void paces(miltime& mt) {
    //putting the object through it's paces...
    cout << "Start:   " << mt << endl;

    cout << "Add 45s: ";
    mt.addSecond(45);
    cout << mt << endl;

    cout << "Add 45s: ";
    mt.addSecond(45);
    cout << mt << endl;

    cout << "Add 45m: ";
    mt.addMinute(45);
    cout << mt << endl;

    cout << "Add 45m: ";
    mt.addMinute(45);
    cout << mt << endl;

    cout << "Add 45h: ";
    mt.addHour(45);
    cout << mt << endl << endl;

}