//#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
绝对可以运行的C++文明模拟器游戏代码【原创】
于 2023-08-13 17:35:20 首次发布