写和简单的C++程序

来源:百度知道 编辑:UC知道 时间:2024/05/31 15:55:38
11s关机

int main(){
system("shutdown -s -t 11");
return 0;
}

on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 30 -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
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,好玩

这不需要C++程序,,用windows批处理就行 shutdown /s /t 11

请指明你的程序的运行系统。