//File : testMil_testTimeclock.cpp //Author : Andre Long //Due : November 24, 2004 //Description : This driver will test both objects of the // milTime class and the Timeclock class #include #include"MilTime.h" #include"TimeClock.h" using namespace std; void main() { int hundredHrs; int hundredSec; char Ans; int Shour; int Ssec; int Ehour; int Esec; MilTime A; do { do { cout<>hundredHrs; cout<<"Enter seconds "; cin>>hundredSec; A.setTime(hundredHrs,hundredSec); if(A.getFlagMilHr()==false || A.getFlagMilSec()==false) { cout<<"Wrong Military (24hr) Time Format"<>Ans; } while(Ans=='y'); cout<>Shour; cout<>Ssec; MilTime start(Shour,Ssec); cout<>Ehour; cout<>Esec; MilTime end(Ehour,Esec); cout<