手机
当前位置:查字典教程网 >编程开发 >C语言 >getdate()函数的用法实例
getdate()函数的用法实例
摘要:复制代码代码如下:#include#includeintmain(){/*getdate()函数的用法*/structdated;getda...

复制代码 代码如下:

#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()函数的用法实例】相关文章:

自己实现strcpy函数的实现方法

深入VC回调函数的使用详解

筛选法的C++实现

VC6.0如何创建以及调用动态链接库实例详解

基于C++ cin、cin.get()、cin.getline()、getline()、gets()函数的使用详解

c++中inline的用法分析

c++中string类成员函数c_str()的用法

简单的汉诺塔问题解法代码

c++中new的三种用法详细解析

浅析C语言中assert的用法

精品推荐
分类导航