Write a program to implement digital clock

#include<stdio.h>
#include<dos.h>
#include<iomanip.h>
#include<time.h>
#include<conio.h>
void main()
{
    char tbuffer[9];
    clrscr();
    gotoxy(32,10);
    cout<<"Digital Clock";
    gotoxy(30,11);
    cout<<"+--------+-----+";
    gotoxy(30,12);
    cout<<"||           ||";
    gotoxy(30,13);
    cout<<"+--------+-----+";
    gotoxy(27,18);
    cout<<"Press any key to exit";
    while(!kbhit())
    {
       _strtime (tbuffer);
       gotoxy(33,12);
       cout<<tbuffer;
       delay(100);
    }
}

19 comments:

  1. please display with algorithms

    ReplyDelete
  2. This pgm is a bullshit !!! How will cout work if there is no iostream.h !!

    ReplyDelete
  3. This pgm is a bullshit !!! How will cout work if there is no iostream.h !!

    ReplyDelete
  4. Thanks for this post.It are very useful for us. I am sharing a website that offers best bachelors programs in Bangalore.
    http://www.iadcollege.com/careers.html

    ReplyDelete