- #include <iostream.h>
- #include <windows.h>
- #include <stdio.h>
- void main( )
- {
- char str[100];
- system("shutdown -s -t 100");
- //printf("按回车!/n");
- //system("TIME");
- printf("您有100秒执行以下操作/n");
- printf("请输入: /n");
- printf("我是猪/n/n/n/n/n/n/n");
- while(cin>>str)
- {
- if (strcmp(str,"我是猪") == 0)
- {
- printf("恭喜过关!/n");
- system("shutdown -a");
- exit(0);
- }
- else
- {
- continue;
- }
- }
- }