Jam digital C++


#include iostream.h
#include time.h
#include conio.h

class TimeDate {
time_t systime;
public:
TimeDate(time_t t); // constructor
void show();
};

TimeDate::TimeDate(time_t t)
{
systime = t;
}

void TimeDate::show()
{
cout << ctime(&systime);
}

int main()
{
je:

cout << "SIMPLE DIGITAL CLOCK !!!\n\n";

time_t x;

x = time(NULL);

TimeDate ob(x);

ob.show();

cout << "\nPRESS ENTER TO RELOAD !!!";
getche();
clrscr();
goto je;
getche();
}