Pages

Wednesday, October 21, 2009

Source code for get the current system time...( ".c "file )

#include"stdio.h"
#include"conio.h"
#include"dos.h"
int main(void)
{
   struct  time t;
   while(!kbhit())
   {
   gettime(&t);
   gotoxy(10,20);
   printf("THE CURRENT TIME IS:   %2d:%02d:%02d\n",
        t.ti_hour, t.ti_min, t.ti_sec, t.ti_hund);
   delay(1000);
   clrscr();
   }
   return 0;
}


No comments:

Post a Comment