更新时间2018-06-09 06:51:18
include<stdio.h>
int main()
{
int a;
do
{
printf("你是猪吗?是请输入1,不是请输入2.输完按回车。");
scanf("%d",&a);
if a==1
{
printf("你还挺有自知之明。");
getchar();
getchar();
return 0;
}
else if a==2
{
printf("猪都说自己不是猪。");
getchar();
getchar();
return 0;
}
else
printf("只有猪才会输入1和2以外的字符。/n/
请重新输入");
}
while(1);}
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""快说“我是猪”,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true
dim a
do while(a <> "我是猪")
a = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true