/*
THIS PROGRAMM DISPLAY DATE AND TIME
*/
#include <iostream.h>
#include <time.h>
#include<conio.h>
void main( )
{
int i=0;
char dateStr [9];
char timeStr [9];
for(i=0;;i++)
{
clrscr();
// FATCH DATE USING BELOW FUNCTION
_strdate( dateStr);
cout<<"\n\t\tDATE::"<<dateStr;
// FATCH TIME USING BELOW FUNCTION
_strtime( timeStr );
cout<<"\n\t\tTIME::"<<timeStr;
}
getch();
}
THIS PROGRAMM DISPLAY DATE AND TIME
*/
#include <iostream.h>
#include <time.h>
#include<conio.h>
void main( )
{
int i=0;
char dateStr [9];
char timeStr [9];
for(i=0;;i++)
{
clrscr();
// FATCH DATE USING BELOW FUNCTION
_strdate( dateStr);
cout<<"\n\t\tDATE::"<<dateStr;
// FATCH TIME USING BELOW FUNCTION
_strtime( timeStr );
cout<<"\n\t\tTIME::"<<timeStr;
}
getch();
}
No comments:
Post a Comment