源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

getdate()函数的用法实例

  • 时间:2020-07-25 21:35 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:getdate()函数的用法实例
[u]复制代码[/u] 代码如下:
#include <stdio.h> #include <dos.h> int main() {     /*getdate()函数的用法*/     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; }
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部