手机
当前位置:查字典教程网 >编程开发 >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++ cin、cin.get()、cin.getline()、getline()、gets()函数的使用详解

C++中strtok()函数的用法介绍

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

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

linux之awk命令的用法

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

哈夫曼的c语言实现代码

C++ ofstream与ifstream详细用法

c++中inline的用法分析

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

精品推荐
分类导航