手机
当前位置:查字典教程网 >编程开发 >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()函数的用法实例】相关文章:

linux之awk命令的用法

解析C++中虚析构函数的作用

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

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

筛选法的C++实现

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

c++友元函数与友元类的深入解析

STL list链表的用法详细解析

关于C/C++中typedef的定义与用法总结

c++ 判断奇数偶数实例介绍

精品推荐
分类导航