把1~4在c++上按顺序排起来玩
cout << "请决定:" << endl;
int baga;
cin >> baga;
if (baga == 2) {
cout << "游戏已结束!" << endl;
} else if (baga == 1) {
cout << "你决定继续修仙!" << endl;
cout << "修仙多少年:";
int jiuji;
cin >> jiuji;
cout << "请按任意键继续......" << endl;
int uuuuu;
cin >> uuuuu;
for (int rp = 8888 + b; rp <= 8888 + b + jiuji; rp++) {
cout << "已修仙" << rp << "年" << endl;
}
cout << "当前战力:" << sum + jiuji * 0.4 << endl;
cout << "继续修仙!" << endl;
cout << "继续修仙多少年:";
int pigu;
cin >> pigu;
cout << "请按任意键继续......" << endl;
int bv;
cin >> bv;
bv = 8888 + b + jiuji;
for (int yyy = bv; yyy <= bv + pigu; yyy++) {
cout << "已修仙" << yyy << "年" << endl;
}
int dddda;
dddda = sum + jiuji * 0.4;
cout << "当前战力:" << (dddda + pigu) * 1.2 << endl;
cout << "请按任意键继续......" << endl;
int hhhj;
cin >> hhhj;
cout << "你将踏上天庭!" << endl;
cout << "你的气场让天兵天将迅速将你围绕起来!" << endl;
cout << "金箍棒进化了!你的战力再次提高5000000!" << endl;
cout << "你要突破天兵天将的包围!" << endl;
int xiao;
xiao = dddda + pigu * 0.4;
cout << "当前战力:" << xiao + 5000000 << endl;
cout << "每次突破重围都会消耗战力!" << endl;
cout << "请按任意键继续......" << endl;
int fa;
cin >> fa;
int cut;
cut = xiao * 5000000;
if (cut < 10000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "不好!你的战力太低,被天兵合力顶出天庭!" << endl;
cout << "修仙失败!你将堕落世间,转世投胎......" << endl;
} else if (cut >= 10000000 && cut < 30000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "(请输入2继续)" << endl;
int rw;
cin >> rw;
if (rw == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 500000 << endl;
cout << "(请输入2继续)" << endl;
int jp;
cin >> jp;
if (jp == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 1000000 << endl;
cout << "(请输入2继续)" << endl;
int ppm;
cin >> ppm;
if (ppm == 2) {
cout << "战斗中......" << endl;
cout << "你蓄力一击!" << endl;
cout << "战力:" << cut - 2500000;
cout << "(请输入2继续)" << endl;
int xxx;
cin >> xxx;
if (xxx == 2) {
cout << "你一时疏忽,被天兵打出魂魄!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
}
}
}
}
} else if (cut >= 30000000 && cut < 40000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "(请输入2继续)" << endl;
int rw;
cin >> rw;
if (rw == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 500000 << endl;
cout << "(请输入2继续)" << endl;
int jp;
cin >> jp;
if (jp == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 1000000 << endl;
cout << "(请输入2继续)" << endl;
int ppm;
cin >> ppm;
if (ppm == 2) {
cout << "战斗中......" << endl;
cout << "你蓄力一击!" << endl;
cout << "战力:" << cut - 2500000;
cout << "(请输入2继续)" << endl;
int xxx;
cin >> xxx;
if (xxx == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 3500000 << endl;
cout << "(请输入2继续)" << endl;
int manboo;
cin >> manboo;
if (manboo == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 4000000 << endl;
cout << "(请输入2继续)" << endl;
int ra;
cin >> ra;
if (ra == 2 && cut - 4000000 >= 35000000) {
cout << "你成功突破了天兵天将的围攻!" << endl;
cout << "你一路打上凌霄宝殿!" << endl;
cout << "多年功力使你在天庭上势如破竹!" << endl;
cout << "你遇到了太白金星!" << endl;
cout << "太白金星战力:26000000" << endl;
cout << "请按任意键继续......" << endl;
int qwe;
cin >> qwe;
if (cut - 4000000 >= 26000000) {
cout << "你打倒了太白金星!" << endl;
cout << "你夺走了他的兵器拂尘!" << endl;
cout << "你愈发强大!" << endl;
int good;
good = (cut - 4000000) * 1.1;
cout << "当前战力:" << good << endl;
cout << "请按任意键继续......" << endl;
int hhhhhh;
cin >> hhhhhh;
cout << "你遇到了如来佛祖!" << endl;
cout << "你与他一战!" << endl;
cout << "请按任意键继续......" << endl;
int erw;
cin >> erw;
if (good <= 34000000) {
cout << "你被如来佛祖击败了!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
} else {
cout << "你打倒了如来佛祖!" << endl;
cout << "你的战力泰国丸霉,一众神仙不敢上前!" << endl;
cout << "请按任意键继续......" << endl;
int iii;
cin >> iii;
cout << "玉帝更是吓得发抖,主动让位!" << endl;
cout << "恭喜,修仙成功!" << endl;
cout << "游戏已结束!" << endl;
}
} else {
cout << "你被太白金星击败了!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
}
}
}
}
}
}
}
} else if (cut >= 40000000 && cut < 50000000) {
cout << "开始战斗!" << endl;
cout << "(请输入3继续)" << endl;
int ug;
cin >> ug;
if (ug == 3) {
cout << "你将金箍棒一扫,天兵天将就魂飞魄散!" << endl;
cout << "天兵天将不敢上前!" << endl;
cout << "你坦然走进了凌霄宝殿!" << endl;
cout << "你顺利将玉帝赶出天庭,坐上龙椅!" << endl;
cout << "修仙成功!" << endl;
cout << "游戏已结束!" << endl;
}
} else if (cut > 50000000) {
cout << "天兵天将见你的内力惊人,齐声说道:" << endl;
cout << "“欢迎齐天大圣登上天庭巅峰! ”" << endl;
cout << "修仙成功!" << endl;
cout << "游戏已结束" << endl;
}
}
} else if (u == 2 && 8888 + b < 30000) {
cout << "修仙失败!你没有通过哪吒的考验!你将堕落人间,转世投胎......" << endl;
} else if (u == 1 && sum - 1000000 >= 8000000) {
cout << "恭喜!你通过了孙悟空的考验!成为神圣灵魂王!" << endl;
cout << "是否继续修仙?" << endl;
cout << "1.继续修仙 2.结束修仙" << endl;
cout << "请决定:" << endl;
int baga;
cin >> baga;
if (baga == 2) {
cout << "游戏已结束!" << endl;
} else if (baga == 1) {
cout << "你决定继续修仙!" << endl;
cout << "修仙多少年:";
int jiuji;
cin >> jiuji;
cout << "请按任意键继续......" << endl;
int uuuuu;
cin >> uuuuu;
for (int rp = 8888 + b; rp <= 8888 + b + jiuji; rp++) {
cout << "已修仙" << rp << "年" << endl;
}
cout << "当前战力:" << sum + jiuji * 0.4 << endl;
cout << "继续修仙!" << endl;
cout << "继续修仙多少年:";
int pigu;
cin >> pigu;
cout << "请按任意键继续......" << endl;
int bv;
cin >> bv;
bv = 8888 + b + jiuji;
for (int yyy = bv; yyy <= bv + pigu; yyy++) {
cout << "已修仙" << yyy << "年" << endl;
}
int dddda;
dddda = sum + jiuji * 0.4;
cout << "当前战力:" << (dddda + pigu) * 1.2 << endl;
cout << "请按任意键继续......" << endl;
int hhhj;
cin >> hhhj;
cout << "你将踏上天庭!" << endl;
cout << "你的气场让天兵天将迅速将你围绕起来!" << endl;
cout << "金箍棒进化了!你的战力再次提高5000000!" << endl;
cout << "你要突破天兵天将的包围!" << endl;
int xiao;
xiao = dddda + pigu * 0.4;
cout << "当前战力:" << xiao + 5000000 << endl;
cout << "每次突破重围都会消耗战力!" << endl;
cout << "请按任意键继续......" << endl;
int fa;
cin >> fa;
int cut;
cut = xiao * 5000000;
if (cut < 10000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "不好!你的战力太低,被天兵合力顶出天庭!" << endl;
cout << "修仙失败!你将堕落世间,转世投胎......" << endl;
} else if (cut >= 10000000 && cut < 30000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "(请输入2继续)" << endl;
int rw;
cin >> rw;
if (rw == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 500000 << endl;
cout << "(请输入2继续)" << endl;
int jp;
cin >> jp;
if (jp == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 1000000 << endl;
cout << "(请输入2继续)" << endl;
int ppm;
cin >> ppm;
if (ppm == 2) {
cout << "战斗中......" << endl;
cout << "你蓄力一击!" << endl;
cout << "战力:" << cut - 2500000;
cout << "(请输入2继续)" << endl;
int xxx;
cin >> xxx;
if (xxx == 2) {
cout << "你一时疏忽,被天兵打出魂魄!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
}
}
}
}
} else if (cut >= 30000000 && cut < 40000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "(请输入2继续)" << endl;
int rw;
cin >> rw;
if (rw == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 500000 << endl;
cout << "(请输入2继续)" << endl;
int jp;
cin >> jp;
if (jp == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 1000000 << endl;
cout << "(请输入2继续)" << endl;
int ppm;
cin >> ppm;
if (ppm == 2) {
cout << "战斗中......" << endl;
cout << "你蓄力一击!" << endl;
cout << "战力:" << cut - 2500000;
cout << "(请输入2继续)" << endl;
int xxx;
cin >> xxx;
if (xxx == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 3500000 << endl;
cout << "(请输入2继续)" << endl;
int manboo;
cin >> manboo;
if (manboo == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 4000000 << endl;
cout << "(请输入2继续)" << endl;
int ra;
cin >> ra;
if (ra == 2 && cut - 4000000 >= 35000000) {
cout << "你成功突破了天兵天将的围攻!" << endl;
cout << "你一路打上凌霄宝殿!" << endl;
cout << "多年功力使你在天庭上势如破竹!" << endl;
cout << "你遇到了太白金星!" << endl;
cout << "太白金星战力:26000000" << endl;
cout << "请按任意键继续......" << endl;
int qwe;
cin >> qwe;
if (cut - 4000000 >= 26000000) {
cout << "你打倒了太白金星!" << endl;
cout << "你夺走了他的兵器拂尘!" << endl;
cout << "你愈发强大!" << endl;
int good;
good = (cut - 4000000) * 1.1;
cout << "当前战力:" << good << endl;
cout << "请按任意键继续......" << endl;
int hhhhhh;
cin >> hhhhhh;
cout << "你遇到了如来佛祖!" << endl;
cout << "你与他一战!" << endl;
cout << "请按任意键继续......" << endl;
int erw;
cin >> erw;
if (good <= 34000000) {
cout << "你被如来佛祖击败了!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
} else {
cout << "你打倒了如来佛祖!" << endl;
cout << "你的战力泰国丸霉,一众神仙不敢上前!" << endl;
cout << "请按任意键继续......" << endl;
int iii;
cin >> iii;
cout << "玉帝更是吓得发抖,主动让位!" << endl;
cout << "恭喜,修仙成功!" << endl;
cout << "游戏已结束!" << endl;
}
} else {
cout << "你被太白金星击败了!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
}
}
}
}
}
}
}
} else if (cut >= 40000000 && cut < 50000000) {
cout << "开始战斗!" << endl;
cout << "(请输入3继续)" << endl;
int ug;
cin >> ug;
if (ug == 3) {
cout << "你将金箍棒一扫,天兵天将就魂飞魄散!" << endl;
cout << "天兵天将不敢上前!" << endl;
cout << "你坦然走进了凌霄宝殿!" << endl;
cout << "你顺利将玉帝赶出天庭,坐上龙椅!" << endl;
cout << "修仙成功!" << endl;
cout << "游戏已结束!" << endl;
}
} else if (cut > 50000000) {
cout << "天兵天将见你的内力惊人,齐声说道:" << endl;
cout << "“欢迎齐天大圣登上天庭巅峰! ”" << endl;
cout << "修仙成功!" << endl;
cout << "游戏已结束" << endl;
}
}
} else if (u == 1 && sum - 1000000 < 8000000) {
cout << "修仙失败!你没有通过孙悟空的考验!你将堕落人间,转世投胎......" << endl;
}
} else if (m == 2) {
cout << "你吃下了魔力仙丹!身体似乎没有什么变化......" << endl;
cout << "当前战力:" << sum << endl;
cout << "你将受到最后神灵的考验!" << endl;
cout << "神灵如下,请选择:" << endl;
cout << "1.孙悟空 要求:吃下雷霆仙丹并战力达到8000000" << endl;
cout << "2.哪吒 要求:修仙时间达到30000年" << endl;
cout << "3.东海龙王 要求:战力大于9999999" << endl;
cout << "请选择:"; cin >> u;
if (u == 3 && sum > 9999999) {
cout << "恭喜!你通过了东海龙王的考验!成为神圣灵魂王!" << endl;
cout << "是否继续修仙?" << endl;
cout << "1.继续修仙 2.结束修仙" << endl;
cout << "请决定:" << endl;
int baga;
cin >> baga;
if (baga == 2) {
cout << "游戏已结束!" << endl;
} else if (baga == 1) {
cout << "你决定继续修仙!" << endl;
cout << "修仙多少年:";
int jiuji;
cin >> jiuji;
cout << "请按任意键继续......" << endl;
int uuuuu;
cin >> uuuuu;
for (int rp = 8888 + b; rp <= 8888 + b + jiuji; rp++) {
cout << "已修仙" << rp << "年" << endl;
}
cout << "当前战力:" << sum + jiuji * 0.4 << endl;
cout << "继续修仙!" << endl;
cout << "继续修仙多少年:";
int pigu;
cin >> pigu;
cout << "请按任意键继续......" << endl;
int bv;
cin >> bv;
bv = 8888 + b + jiuji;
for (int yyy = bv; yyy <= bv + pigu; yyy++) {
cout << "已修仙" << yyy << "年" << endl;
}
int dddda;
dddda = sum + jiuji * 0.4;
cout << "当前战力:" << (dddda + pigu) * 1.2 << endl;
cout << "请按任意键继续......" << endl;
int hhhj;
cin >> hhhj;
cout << "你将踏上天庭!" << endl;
cout << "你的气场让天兵天将迅速将你围绕起来!" << endl;
cout << "金箍棒进化了!你的战力再次提高5000000!" << endl;
cout << "你要突破天兵天将的包围!" << endl;
int xiao;
xiao = dddda + pigu * 0.4;
cout << "当前战力:" << xiao + 5000000 << endl;
cout << "每次突破重围都会消耗战力!" << endl;
cout << "请按任意键继续......" << endl;
int fa;
cin >> fa;
int cut;
cut = xiao * 5000000;
if (cut < 10000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "不好!你的战力太低,被天兵合力顶出天庭!" << endl;
cout << "修仙失败!你将堕落世间,转世投胎......" << endl;
} else if (cut >= 10000000 && cut < 30000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "(请输入2继续)" << endl;
int rw;
cin >> rw;
if (rw == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 500000 << endl;
cout << "(请输入2继续)" << endl;
int jp;
cin >> jp;
if (jp == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 1000000 << endl;
cout << "(请输入2继续)" << endl;
int ppm;
cin >> ppm;
if (ppm == 2) {
cout << "战斗中......" << endl;
cout << "你蓄力一击!" << endl;
cout << "战力:" << cut - 2500000;
cout << "(请输入2继续)" << endl;
int xxx;
cin >> xxx;
if (xxx == 2) {
cout << "你一时疏忽,被天兵打出魂魄!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
}
}
}
}
} else if (cut >= 30000000 && cut < 40000000) {
cout << "开始战斗!" << endl;
cout << "你尝试突破重围!" << endl;
cout << "(请输入2继续)" << endl;
int rw;
cin >> rw;
if (rw == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 500000 << endl;
cout << "(请输入2继续)" << endl;
int jp;
cin >> jp;
if (jp == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 1000000 << endl;
cout << "(请输入2继续)" << endl;
int ppm;
cin >> ppm;
if (ppm == 2) {
cout << "战斗中......" << endl;
cout << "你蓄力一击!" << endl;
cout << "战力:" << cut - 2500000;
cout << "(请输入2继续)" << endl;
int xxx;
cin >> xxx;
if (xxx == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 3500000 << endl;
cout << "(请输入2继续)" << endl;
int manboo;
cin >> manboo;
if (manboo == 2) {
cout << "战斗中......" << endl;
cout << "战力:" << cut - 4000000 << endl;
cout << "(请输入2继续)" << endl;
int ra;
cin >> ra;
if (ra == 2 && cut - 4000000 >= 35000000) {
cout << "你成功突破了天兵天将的围攻!" << endl;
cout << "你一路打上凌霄宝殿!" << endl;
cout << "多年功力使你在天庭上势如破竹!" << endl;
cout << "你遇到了太白金星!" << endl;
cout << "太白金星战力:26000000" << endl;
cout << "请按任意键继续......" << endl;
int qwe;
cin >> qwe;
if (cut - 4000000 >= 26000000) {
cout << "你打倒了太白金星!" << endl;
cout << "你夺走了他的兵器拂尘!" << endl;
cout << "你愈发强大!" << endl;
int good;
good = (cut - 4000000) * 1.1;
cout << "当前战力:" << good << endl;
cout << "请按任意键继续......" << endl;
int hhhhhh;
cin >> hhhhhh;
cout << "你遇到了如来佛祖!" << endl;
cout << "你与他一战!" << endl;
cout << "请按任意键继续......" << endl;
int erw;
cin >> erw;
if (good <= 34000000) {
cout << "你被如来佛祖击败了!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
} else {
cout << "你打倒了如来佛祖!" << endl;
cout << "你的战力泰国丸霉,一众神仙不敢上前!" << endl;
cout << "请按任意键继续......" << endl;
int iii;
cin >> iii;
cout << "玉帝更是吓得发抖,主动让位!" << endl;
cout << "恭喜,修仙成功!" << endl;
cout << "游戏已结束!" << endl;
}
} else {
cout << "你被太白金星击败了!" << endl;
cout << "修仙失败!你将堕落人间,转世投胎......" << endl;
}
}
}
}
}
}
}
} else if (cut >= 40000000 && cut < 50000000) {
cout << "开始战斗!" << endl;
cout << "(请输入3继续)" << endl;
int ug;
cin >> ug;
if (ug == 3) {
cout << "你将金箍棒一扫,天兵天将就魂飞魄散!" << endl;
cout << "天兵天将不敢上前!" << endl;
cout << "你坦然走进了凌霄宝殿!" << endl;
cout << "你顺利将玉帝赶出天庭,坐上龙椅!" << endl;
cout << "修仙成功!" << endl;
cout << "游戏已结束!" << endl;
}
} else if (cut > 50000000) {
cout << "天兵天将见你的内力惊人,齐声说道:" << endl;
cout << "“欢迎齐天大圣登上天庭巅峰! ”" << endl;
cout << "修仙成功!" << endl;
cout << "游戏已结束" << endl;
}
}
} else if (u == 3 && sum <= 9999999) {
cout << "修仙失败!你没有通过东海龙王的考验!你将堕落人间,转世投胎......" << endl;
} else if (u == 2 && 8888 + b >= 30000) {
cout << "恭喜!你通过了哪吒的考验!成为神圣灵魂王!" << endl;
cout << "是否继续修仙?" << endl;
cout << "1.继续修仙 2.结束修仙" << endl;
cout << "请决定:" << endl;
int baga;
cin >> baga;
if (baga == 2) {
cout << "游戏已结束!" << endl;
} else if (baga == 1) {
cout << "你决定继续修仙!" << endl;
cout << "修仙多少年:";
int jiuji;
cin >> jiuji;
cout << "请按任意键继续......" << endl;
int uuuuu;
cin >> uuuuu;
for (int rp = 8888 + b; rp <= 8888 + b + jiuji; rp++) {
cout << "已修仙" << rp << "年" << endl;
}
cout << "当前战力:" << sum + jiuji * 0.4 << endl;
cout << "继续修仙!" << endl;
cout << "继续修仙多少年:";
int pigu;
cin >> pigu;
cout << "请按任意键继续......" << endl;
int bv;
cin >> bv;
bv = 8888 + b + jiuji;
for (int yyy = bv; yyy <= bv + pigu; yyy++) {
cout << "已修仙" << yyy << "年" << endl;
}
int dddda;
dddda = sum + jiuji * 0.4;
cout << "当前战力:" << (dddda + pigu) * 1.2 << endl;
cout << "请按任意键继续......" << endl;