load and time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfareezaw
    New Member
    • Aug 2006
    • 2

    #1

    load and time

    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
Working...