1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
//=========================================================
// DigitalClock.cpp
//
// Implement member functions in DigitalClock class which
// is in file DigitalClock.h
//=========================================================
#include "DigitalClock.h"
#include "ClockTimer.h"
#include <iostream>
void DigitalClock::Draw (const ClockTimer &clock)
{
int hour = clock.GetHour();
int minute = clock.GetMinute();
int second = clock.GetSecond();
std::cout << "Digital Clock time is " << hour << ":"
<< minute << ":"
<< second << std::endl;
}
|