getdate()函数的用法.`
生活随笔
收集整理的這篇文章主要介紹了
getdate()函数的用法.`
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#include <stdio.h>
#include <dos.h>
int main()
{???? /*getdate()函數的用法*/
??? struct date d;
??? getdate(&d); //獲取DOS日期
??? printf("the current year is:%d\n",d.da_year);//cprintf和printf用法是不同的
??? printf("the current day is:%d\n",d.da_day);
??? printf("the current month is:%d\n",d.da_mon);
??? getch();
??? return 0;
}
轉載于:https://www.cnblogs.com/wangjingyuwhy/archive/2013/03/05/2943730.html
總結
以上是生活随笔為你收集整理的getdate()函数的用法.`的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Struts2 拦截器 及如何获得 se
- 下一篇: 戴尔电脑系统怎么升级到win10 如何升