分享一个延迟关机程序,限制你的上网时间,(-。-);
include<stdio.h >
include<stdlib.h>
include<string.h>
int main()
{
char input[10] = { 0 };
system(“shutdown -s -t 60”);
while(1)
{
printf(“电脑在一分钟内关机,如果输入;我是猪,就取消关机!\n”);
scanf("%s",input);
if(0==strcmp(input,"我是猪“))
{
sytem(“shutdown -a‘);
break;
}
}
printf(” 取消关机”);
system(“pause”);
return 0;
}
入门C语言 分享一个电脑关机程
最新推荐文章于 2024-01-23 23:55:44 发布