提交 69f49f3e 编辑于 作者: 哲昊 周's avatar 哲昊 周
浏览文件

Upload New File

上级 dd9e8e2b
#include <Windows.h>
#include <iostream>
#include<conio.h>
#include "Prepare.h"
#define W Sleep(1000);//延时一秒
using namespace std;
void Battle::Battle_Husong()
{
system("cls");
if (process == 5)
{
system("color 84");
cout << endl << endl << endl << endl << endl << endl;
cout << " 世界毁灭,林克已死"; W W
Battle_Map();
}
else
{
cout << "通过护送商队赚取金钱" << endl << endl;
cout << "1、护送小型商队" << endl;
cout << "2、护送大型商队" << endl;
cout << "3、离开" << endl << endl;
int Getmoney;
cout << "输入你的选择" << endl;
cin >> Getmoney;
cout << endl;
while (Getmoney != 3)
{
switch (Getmoney)
{
case 1:
cout << "护送完成度(25%)" << endl; W
cout << "护送完成度(50%)" << endl; W
cout << "护送完成度(75%)" << endl; W
cout << "护送完成度(100%)" << endl; W
cout << "获得¥15" << endl << endl;
Money += 15;
break;
case 2:
if (process > 2)
{
cout << "护送完成度(25%)" << endl; W
cout << "护送完成度(50%)" << endl; W
cout << "护送完成度(75%)" << endl; W
cout << "护送完成度(100%)" << endl; W
cout << "获得¥45" << endl << endl;
Money += 45;
break;
}
else
{
cout << "你现在还不够强" << endl << endl;
break;
}
default:
cout << "无效的选择,重新输入" << endl << endl;
}
cout << "输入你的选择" << endl;
cin >> Getmoney;
cout << endl;
}
if (3 == Getmoney) {
cout << "欢迎下次再来!" << endl;
W
Battle_Map();
}
}
}
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册