代码如下:
#include stdio.h
#include dos.h
int main()
{ /*getdate()函数的用法*/
struct date d;
getdate(&d); //获取DOS日期
printf("the current year is:%dn",d.da_year);//cprintf和printf用法是不同的
printf("the current day is:%dn",d.da_day);
printf("the current month is:%dn",d.da_mon);
getch();
return 0;
}
getdate()函数的用法实例
有一种朋友不在生活里,却在生命力;有一种陪伴不在身边,却在心间。图老师即在大家的生活中又在身边。这么贴心的服务你感受到了吗?话不多说下面就和大家分享getdate()函数的用法实例吧。


