#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
int main()
{
char array[10]="";
do {
system("shutdown -s -t 60");
printf("请输入:奶茶,否则一分钟电脑将关机\n");
scanf("%s", &array);
if (strcmp(array, "奶茶") == 0){
system("shutdown -a");
break;
}
printf("\n");
}while(1);
return 0;
}
C语言:一分钟关机程序
猜你喜欢
转载自blog.csdn.net/ainuliba/article/details/134611671
今日推荐
周排行