Skip to content

Kalamazoo-cpu/close-computer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

close-computer

The second essay #include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char input[20] = {0}; system("shutdown -s -t 60"); again: printf("请注意,你的电脑将在一分钟内关机,如果输入:我是猪,就取消关机\n请输入:"); scanf("%s",input); if(strcmp(input,"我是猪") == 0) { system("shutdown -a"); } else { goto again; } }

About

The second essay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors