王者荣耀
这是我一次无聊时写出的一个小小的程序
可以恶搞
部分程序还是有学习价值的
望大家支持
代码
#include
#include
#include
void QQ();
void weixin();
void pipei();
void paiwei();
void xuanyingxiong();
void pipeijiemian();
void dating();
int duanwei=1;
using namespace std;
int main()
{
char ch='A',wei=1,qq=0;
cout<<"-------------------------------------王者荣耀-----------------------------------"<>[与微信好友玩]<< [与QQ好友玩] "<>[与微信好友玩]<< [与QQ好友玩] "<>[与QQ好友玩]<< "<>匹配<< | 排位赛 | 商店(未开放) | |"<>匹配<< | 排位赛 | 商店(未开放) | |"<>排位赛 << | 商店(未开放) | |"<>z;
cout<<"密码:";
cin>>m;
system("cls");
}
void weixin()
{
system("cls");
long long int z,m;
cout<<"--------------------------------------"<>z;
cout<<"密码:";
cin>>m;
system("cls");
}
void pipei()
{
char ch;
system("cls");
cout<<"-----------------------------------------------------------"<>5 vs 5<< | 3 vs 3 | 1 vs 1 |返回(A) |"<"<"<"< 韩信 |"<"< 韩信 |"<"<明世隐 |"<"<明世隐 |"<狄仁杰 |"<"<"<"<"<(time(0))) ;
int randomNumber=rand();
int ss =(randomNumber% 6)+1;
if (ss>=4)
{
cout<<"-------------------------------------------------------------"<
没有账号的复制这里
#include
#include
#include
void QQ();
void weixin();
void pipei();
void paiwei();
void xuanyingxiong();
void pipeijiemian();
void dating();
int duanwei=1;
using namespace std;
int main()
{
char ch='A',wei=1,qq=0;
cout<<"-------------------------------------王者荣耀-----------------------------------"< cout<<" >>[与微信好友玩]<< [与QQ好友玩] "< cout<<" (A,D选择,K确定) "< while(ch!='K')
{
ch=getch();
if(ch=='A')
{
system("cls");
cout<<"-------------------------------------王者荣耀-----------------------------------"< cout<<" >>[与微信好友玩]<< [与QQ好友玩] "< cout<<" (A,D选择,K确定) "< wei=1;
qq=0;
}
else if(ch=='D')
{
system("cls");
cout<<"-------------------------------------王者荣耀-----------------------------------"< cout<<" [与微信好友玩] >>[与QQ好友玩]<< "< cout<<" (A,D选择,K确定) "< wei=0;
qq=1;
}
else if(ch=='K')
break;
}
if(qq)
QQ();
if(wei)
weixin();
cout<<" -------------------"< cout<<" -| |-"< cout<<" | 王者荣耀 |"< cout<<" -| |-"< cout<<" -------------------"< cout<<" loading";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
dating();
}
void dating()
{
char ch;
system("cls");
cout<<"-----------------------------------------------------------"< cout<<"| 王者荣耀 |"< cout<<"|无名氏:30级 金币:0 点券:0 钻石:0 |"< cout<<"|---------------------------------------------------------|"< cout<<"| | | | |"< cout<<"| >>匹配<< | 排位赛 | 商店(未开放) | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"-----------------------------------------------------------"< ch=getch();
int pw=0,pp=1;
while(ch!='K')
{
ch=getch();
if(ch=='A')
{
system("Cls");
cout<<"-----------------------------------------------------------"< cout<<"| 王者荣耀 |"< cout<<"|无名氏:30级 金币:0 点券:0 钻石:0 |"< cout<<"|---------------------------------------------------------|"< cout<<"| | | | |"< cout<<"| >>匹配<< | 排位赛 | 商店(未开放) | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"-----------------------------------------------------------"< pw=0;
pp=1;
}
else if(ch=='D')
{
system("Cls");
cout<<"-----------------------------------------------------------"< cout<<"| 王者荣耀 |"< cout<<"|无名氏:30级 金币:0 点券:0 钻石:0 |"< cout<<"|---------------------------------------------------------|"< cout<<"| | | | |"< cout<<"| 匹配 | >>排位赛 << | 商店(未开放) | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"-----------------------------------------------------------"< pp=0;
pw=1;
}
else if(ch=='K')
break;
}
if(pp)
pipei();
if(pw)
paiwei();
}
void QQ()
{
system("cls");
long long int z,m;
cout<<"--------------------------------------"< cout<<"账号:";
cin>>z;
cout<<"密码:";
cin>>m;
system("cls");
}
void weixin()
{
system("cls");
long long int z,m;
cout<<"--------------------------------------"< cout<<"账号:";
cin>>z;
cout<<"密码:";
cin>>m;
system("cls");
}
void pipei()
{
char ch;
system("cls");
cout<<"-----------------------------------------------------------"< cout<<"| 王者荣耀 |"< cout<<"|无名氏:30级 金币:0 点券:0 钻石:0 |"< cout<<"|---------------------------------------------------------|"< cout<<"| | | | |"< cout<<"| >>5 vs 5<< | 3 vs 3 | 1 vs 1 |返回(A) |"< cout<<"| | (未开放) | (未开放) | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"| | | | |"< cout<<"-----------------------------------------------------------"< while(ch!='A'&&ch!='K')
{
ch=getch();
if(ch=='A')
dating();
else if(ch=='K')
{
pipeijiemian();
xuanyingxiong();
dating();
}
}
}
void xuanyingxiong()
{
string xingxiong="鲁班" ;
char ch='T';
while(ch!='K')
{
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | | 曹操 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |诸葛亮 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | | 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | | ???? |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 准备 |"< cout<<"| | | (K) |"< cout<<"-------------------------------------------------------------"< ch=getch();
if(ch=='Z')
xingxiong="鲁班";
else if(ch=='X')
xingxiong="赵云";
else if(ch=='C')
xingxiong="花木兰";
else if(ch=='V')
xingxiong="李白";
else if(ch=='B')
xingxiong="盾山";
else if(ch=='N')
xingxiong="后裔";
else if(ch=='M')
xingxiong="貂蝉";
else if(ch=='L')
xingxiong="露娜";
}
Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | | 曹操 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |诸葛亮 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | | 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | | ???? |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | |狄仁杰 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |诸葛亮 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | | 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | | ???? |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | |狄仁杰 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |安吉拉 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | 我打野,别抢--> 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | | ???? |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | |狄仁杰 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |安吉拉 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | 我打野,别抢--> 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | 我辅助,狄仁杰,跟我-->明世隐 |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | |狄仁杰 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |安吉拉 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | | 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | 我辅助,狄仁杰,跟我-->明世隐 |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | OK!!别坑就行-->狄仁杰 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |安吉拉 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | | 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | |明世隐 |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | |狄仁杰 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |安吉拉 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | | 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | |明世隐 |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | |狄仁杰 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |安吉拉 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | | 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | |明世隐 |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"------------------------------------------------------------"< cout<<"| | | |狄仁杰 |"< cout<<"|鲁班 |赵云 | |-------|"< cout<<"| (Z) | (X) | |安吉拉 |"< cout<<"|------------| |-------|"< cout<<"|花木兰|李白 | | 韩信 |"< cout<<"| (C) |(V) | |-------|"< cout<<"|------------| 加载英雄模型中...... |>"< cout<<"|盾山 |后裔 | |-------|"< cout<<"|(B) |(N) | |明世隐 |"< cout<<"|------------| |-------|"< cout<<"|貂蝉 |露娜 | | |"< cout<<"|(M) |(L) | |-------|"< cout<<"|------------| | 等待 |"< cout<<"| | | ... |"< cout<<"-------------------------------------------------------------"< Sleep(1000);
system("cls");
cout<<"-------------------------------------------------------------"< cout<<"| | | | | |"< cout<<"| | | | | |"< cout<<"| 狄仁杰 | 安吉拉 | 韩信 | "< cout<<"| | | | | |"< cout<<"| 100% | 0% | 89% | 30% | 10% |"< cout<<"| | | | | |"< cout<<"|-----------------------------------------------------------|"< cout<<"|----------------------------vs-----------------------------|"< cout<<"|-----------------------------------------------------------|"<