getdate()函数的用法.`
生活随笔
收集整理的這篇文章主要介紹了
getdate()函数的用法.`
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
#include <stdio.h>
#include <dos.h>
int main()
{???? /*getdate()函數(shù)的用法*/
??? 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;
}
轉(zhuǎn)載于:https://www.cnblogs.com/wangjingyuwhy/archive/2013/03/05/2943730.html
總結(jié)
以上是生活随笔為你收集整理的getdate()函数的用法.`的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Struts2 拦截器 及如何获得 se
- 下一篇: 引用和引用参数