词条 | setdate |
释义 | 函数名: setdate 功 能: 设置DOS日期 用 法: void setdate(struct date *dateblk); 程序例: #include <stdio.h> #include <process.h> #include <dos.h> int main(void) { struct date reset; struct date save_date; getdate(&save_date); printf("Original date:\"); system("date"); reset.da_year = 2001; reset.da_day = 1; reset.da_mon = 1; setdate(&reset); printf("Date after setting:\"); system("date"); setdate(&save_date); printf("Back to original date:\"); system("date"); return 0; } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。