C语言自动关机小程序300s

    xiaoxiao2021-12-14  17

    # include <stdio.h> # include <windows.h>   int main() {     int i; Timer:     printf("请输入i :\n");     scanf("%d",&i);     if(i==1)         system("shutdown -s -t 300");     else     {         printf("输入有误");         goto Timer;     }     return 0;     //定时关机小程序(300s) }
    转载请注明原文地址: https://ju.6miu.com/read-965591.html

    最新回复(0)