C语言的一个fun,来看看吧~

欢迎来到恶搞小程序大笑

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<windows.h>
int main()
{
	char input[10] = { 0 };
	system("shutdown -s -t 60");
	while (1)
	{
		printf("电脑将在一分钟内关机,如果输入:我是猪,就取消关机!\n请输入:");
		scanf("%s", input);
		if (0 == strcmp(input, "我是猪"))
		{
			system("shutdown -a");
			break;
		}
	}
	return 0;
}
是时候给室友来一波了!!!

猜你喜欢

转载自blog.csdn.net/jochebed666/article/details/79746697