绝对可以运行的C++文明模拟器游戏代码【原创】

//#include<bits/stdc++.h>
#include<iostream> 
#include<cstdio> 
#include<fstream> 
#include<algorithm> 
#include<cmath> 
#include<deque> 
#include<vector> 
#include<queue> 
#include<string> 
#include<cstring> 
#include<map> 
#include<stack> 
#include<set> 
#include<windows.h>
#include<conio.h>
#include<ctime>
using namespace std;

const int maxn=100;
const int sleep=500;//屏幕速度 

struct civil//文明 
{
    int level;
    vector<int>planets;
    string name;
    bool alive;
}c[maxn];

struct planet//星球 
{
    int dist;
    int belong;
    string name;
}p[maxn];

struct warship//舰队 
{
    int from;
    int frompl;
    int to;
    int ti;
    warship(){}
    warship(int _frompl,int _to,int _ti):from(p[_frompl].belong),frompl(_frompl),to(_to),ti(_ti){}
};

bool operator<(warship a,warship b)
{
    return a.ti>b.ti;
}

string lv[]={"石器时代","青铜时代","铁器时代","蒸汽时代","电气时代","原子时代","信息时代","广播恒星坐标","1/100光速航行","1/10光速航行","光速航行","黑暗森林打击"};
string destroy[]={"严寒","烈焰","双日凌空","三日凌空","三日连珠","大撕裂"};
priority_queue<warship>q,r;
int sum;

void lose(int id);
string sFromInt(int x);

int main(){
    system("COLOR 0A");
    //freopen("ST.in","r",stdin);
    //freopen
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值