词条 | settime |
释义 | 函数名: settime 功 能: 设置系统时间 用 法: void settime(struct time *timep); 程序例: #include <stdio.h> #include <dos.h> int main(void) { struct time t; gettime(&t); printf("The current minute is: %d\", t.ti_min); printf("The current hour is: %d\", t.ti_hour); printf("The current hundredth of a second is: %d\", t.ti_hund); printf("The current second is: %d\", t.ti_sec); /* Add one to the minutes struct element and then call settime */ t.ti_min++; settime(&t); return 0; } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。