有错误,怎样改一下???
/*取得当前系统时间*/#include<stdio.h>
#include<dos.h>
int main()
{
struct time t;
gettime(&t);
printf("The current time is: %2d:%2d:%2d.%2d\n",t.ti_hour,t.ti_min,t.ti_sec,t.ti_hund);
return 0;
}
书上的程序
2008-04-20 13:32
2008-04-20 13:43
2008-04-20 13:46
2008-04-20 16:16
2008-04-20 16:17
2008-04-20 16:21
2008-04-21 00:16
2008-04-21 00:20
2008-04-21 00:59
2008-04-21 01:04