dears
i need an axample how to get time and how to load numbers from file in the disk
i found this in the help but it is not printing
#include <stdio.h>
#include <dos.h>
int main(void)
{
struct time t;
gettime(&t);
printf("The current time is: %2d:%02d:%02d.% 02d\n",
t.ti_hour, t.ti_min, t.ti_sec, t.ti_hund);
return 0;
}
i replaced printf by cout then the statment is printed but the time no
pls help
thanks
i need an axample how to get time and how to load numbers from file in the disk
i found this in the help but it is not printing
#include <stdio.h>
#include <dos.h>
int main(void)
{
struct time t;
gettime(&t);
printf("The current time is: %2d:%02d:%02d.% 02d\n",
t.ti_hour, t.ti_min, t.ti_sec, t.ti_hund);
return 0;
}
i replaced printf by cout then the statment is printed but the time no
pls help
thanks