#include<iostream.h>
#include<conio.h>
class clock
{
int hh,mm,ss,sec;
public:
void setclock(int h,int m,int s)
{
hh=h;
mm=m;
ss=s;
}
void showclock()
{
cout<
}
void tick();
};
void clock::tick()
{
int c;
c=0;
cout<<"\n Enter seconds : ";
cin>>sec;
for(int i=0;i
{
c++;
}
cout<<"\n User specified second are : "<
}
void main()
{
clock c;
int hh,mm,ss;
clrscr();
cout<<"\n Enter time : ";
cout<<"\n HH : ";
cin>>hh;
cout<<"\n MM : ";
cin>>mm;
cout<<"\n SS : ";
cin>>ss;
c.setclock(hh,mm,ss);
c.showclock();
cout<<"\n------------------------------";
c.tick();
getch();
}