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

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

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

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

C++函数中return语句的使用方法

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

哈夫曼的c语言实现代码

函数指针的强制类型转换实现代码

c++中inline的用法分析

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

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

精品推荐
分类导航