问题标题: 酷町堂:帮忙编代码~~~

2
2
已解决
许金夫
许金夫
初级天翼
初级天翼

各位有没有帮忙怼代码的???我这里有一个游戏,代码已经编了很久了,有没有帮忙的?有愿意帮忙的上洛谷~

洛谷网址

编了一半的代码:

#pragma GCC diagnostic error "-std=c++11"
#pragma GCC target("avx")
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#pragma GCC optimize(3)
#include<set>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<cstdio>
#include<time.h>
#include<vector>
#include<cstring>
#include<stdlib.h>
#include<iostream>
#include<algorithm>
#include<windows.h>
#include <bits/stdc++.h>
using namespace std;
//____________________________________________[定义地图]____________________________________________________

/*局部地图*/string map1[500][500]={	 {"|   0","   1","   2","   3","   4","   5","   6","   7","   8","   9","  10|"},
						 {"|   1","■■","■■","====","====","■■","■■","    ","    ","    ","  Ω|"},
						 {"|   2","■■","■■","■■","   =","= ■","■■","■  ","    ","    ","    |"},
						 {"|   3","■■","■■","■■","Ш  ","====","■■","■■","    ","    ","    |"},
						 {"|   4","■■","■  ","  ■","■■","   =","==  ","■■","    ","    ","    |"},
						 {"|   5","■■","  П","    ","■■","■■"," == ","  ■","    ","    ","    |"},
						 {"|   6","====","====","    ","■■","■■","  ==","=   ","    ","    ","    |"},
						 {"|   7","  П","   =","====","  ■","■  ","    ","==  ","    ","  ■","■  |"},
						 {"|   8","    ","    ","   =","====","====","===="," == ","    ","  ■","■  |"},
						 {"|   9","    ","    ","  П","    ","    ","   =","====","====","  ■","■  |"},
						 {"|  11","    ","    ","    ","    ","    ","    ","    ","   =","====","====|"},
						 {"|  12","    ","    ","    ","  П","    ","    ","    ","    ","    ","    |"},
						 {"|  13","    ","    ","    ","    ","    ","    ","    ","    ","    ","    |"},
						 {"|  14","    ","  П","  П","    ","    ","    ","    ","    ","    ","    |"},
						 {"|  15","  П","    ","    ","  П","    ","    ","    ","    ","    ","    |"},
						 {"|  16","    ","    ","  П","    ","  П","    ","    ","    ","    ","    |"}};


//____________________________________________[定义数组]____________________________________________________



int sushe[16][4];//x表示等级,y=0表示宿舍有多少个,y=1表示宿舍能装多少人,y=2表示从x级升级需要多少钱 
int gongchang_putong[16][4];//x表示等级,y=0表示宿舍有多少个,y=1表示宿舍能装多少人,y=2表示从x级升级需要多少钱 
int gongchang_zhong[16][4];//x表示等级,y=0表示宿舍有多少个,y=1表示宿舍能装多少人,y=2表示从x级升级需要多少钱
int gold[16][4];//x表示等级,y=0表示金矿有多少个,y=1表示金矿能产多少金子,y=2表示从x级升级需要多少钱 
int yin[16][4];//x表示等级,y=0表示银矿有多少个,y=1表示银矿能产多少银子,y=2表示从x级升级需要多少钱 
int tong[16][4];//x表示等级,y=0表示铜矿有多少个,y=1表示铜矿能产多少铜,y=2表示从x级升级需要多少钱 
int baoshi[16][4];//x表示等级,y=0表示宝石矿有多少个,y=1表示宝石矿能产多少宝石,y=2表示从x级升级需要多少钱 
int tie[16][4];//x表示等级,y=0表示铁矿有多少个,y=1表示铁矿能产多少铁,y=2表示从x级升级需要多少钱 
int mei[16][4];//x表示等级,y=0表示煤矿有多少个,y=1表示煤矿能产多少煤,y=2表示从x级升级需要多少钱 
int shiyou[16][4];//x表示等级,y=0表示石油机有多少个,y=1表示石油机能产多少石油,y=2表示从x级升级需要多少钱
int jing[16][4];//x表示等级,y=0表示能量水晶矿有多少个,y=1表示能量水晶矿能产多少能量水晶,y=2表示从x级升级需要多少钱 
int quan[16][4];//x表示等级,y=0表示圣泉瓶有多少个,y=1表示圣泉瓶能产多少圣泉,y=2表示从x级升级需要多少钱 
int water[16][4];//x表示等级,y=0表示取水机有多少个,y=1表示取水机能产多少水,y=2表示从x级升级需要多少钱 
int tree[16][4];//x表示等级,y=0表示取水机有多少个,y=1表示取水机能产多少水,y=2表示从x级升级需要多少钱 
int tian[16][4];

 
//____________________________________________[定义结构体]__________________________________________________ 


//money=(gong+fang)*lv/2
//money1=(gong+fang)*money/2
/*玩家*/struct Wj{string named;int lv,money,tudi;int day;bool flag;};Wj people; 
/*步兵*/struct Bz1{string name;int lv,sum,flag,gong,fang,money=(gong+fang)*lv/2,longer,money1=(gong+fang)*money/2;}bz1[2500];// 
/*射手*/struct Bz2{string name;int lv,sum,flag,gong,fang,money=(gong+fang)*lv/2,longer,money1=(gong+fang)*money/2;}bz2[2500]; 
/*水军*/struct Bz3{string name;int lv,sum,flag,gong,fang,money=(gong+fang)*lv/2,longer,money1=(gong+fang)*money/2;}bz3[2500];  
/*资源*/struct Zy{int baoshi,gold,yin,tong,tie,mei,shiyou,jing,quan,water,tree;int money,energy;};Zy ziyuan;
/*建筑*/struct Jz{int sushe,gongchang_putong,gongchang_zhong,gongchang_jun,school,gangkou,shop,keyan,tian;}jz[16];
/*消耗*/struct Xh{int money,tie,energy,water,tree,quan;};Xh consume;
/*农业项目*/struct Xm1{int day,money;}xm1[1000]; 



//____________________________________________[定义数据函数]_________________________________________________  


/*宿舍*/void sushe1();
/*轻工业工厂*/void gongchang_putong1();
/*重工业工厂*/void gongchang_zhong1();
/*金矿*/void gold1();
/*银矿*/void yin1();
/*铜矿*/void tong1();
/*宝石*/void baoshi1();
/*铁矿*/void tie1();
/*煤矿*/void mei1();
/*石油*/void shiyou1();
/*水晶*/void jing1();
/*圣泉*/void quan1();
/*水源*/void water1(); 
/*木材*/void tree1();
/**/;
/**/;
/**/;
/**/;


//____________________________________________[定义地图函数]_________________________________________________


 
//____________________________________________[定义输出函数]_________________________________________________ 




//____________________________________________[定义赋值函数]_________________________________________________ 
/*兵种*/void bingzhong();




//____________________________________________[定义计算函数]_________________________________________________ 
/*计算资源*/void Zy1(); 


//____________________________________________[定义应用函数]_________________________________________________ 
/*出场特效*/void print(const char a[],int b);
/*出场特效*/void Initialize();
/*出场特效*/void cursor(bool a);
/*出场特效*/void gotoxy(int x,int y);
/*登录*/void denglu();
/*注册*/void zhuce(); 



//____________________________________________[定义核心函数]_________________________________________________ 
/*开始*/void welcome(); 
/*主页*/void zhuye(); 
/*新人报到*/void xitong1();
/*农业发展*/void xitong2();
/*矿工发展*/
/*工业发展*/
/*科技研究*/
/*军事准备*/
/*商业模式*/
/*大航海*/ 
/*战争模式*/ 
/*我的帝国*/ 
/*居民区*/ 
/*日期*/ 


void watch_map1(){
	print("[残缺的地图]:",25);cout<<endl;Sleep(200);
	cout<<"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"<<endl;
	for(int i=0;i<=10;i++){
		for(int j=0;j<=10;j++){
			cout<<map1[i][j];
		}
		cout<<endl;
	}
	cout<<"▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔"<<endl; 
	print("[图例]:",25);cout<<endl;
	print("[■]:山区;多矿产,林木;地形陡峭,适合建造防御工程",25);cout<<endl;
	print("[  ]:平地;土壤肥沃,地形平坦,适合耕种和建筑工厂,",25);cout<<endl;
	print("[==]:河流;这是一个国家所必要的(沙漠篇除外)",25);cout<<endl;
	print("[П]:其他国家;输入坐标可以查看信息",25);cout<<endl;
	print("[Ш]:你的国家",25);cout<<endl;
	print("[Ω]:最终之门",25);cout<<endl;
} 




void Day(){
	
}


//____________________________________________[定义存档函数]_________________________________________________ 

void fileout(){
    freopen("Empire-帝国.txt","w",stdout);
    cout<<people.flag<<endl; 
    cout<<people.named<<' '<<people.lv<<' '<<people.money<<' '<<people.tudi<<' '<<people.day<<endl; 
    cout<<ziyuan.baoshi<<' '<<ziyuan.gold<<' '<<ziyuan.yin<<' '<<ziyuan.tong<<' '<<ziyuan.tie<<' '<<ziyuan.mei<<' '<<ziyuan.shiyou<<' '<<ziyuan.jing<<' '<<ziyuan.quan<<' '<<ziyuan.water<<' '<<ziyuan.tree<<' '<<ziyuan.money<<' '<<ziyuan.energy<<endl; 
	for(int i=1;i<=8;i++)cout<<bz1[i].name<<' '<<bz1[i].lv<<' '<<bz1[i].sum<<' '<<bz1[i].flag<<' '<<bz1[i].gong<<' '<<bz1[i].fang<<' '<<bz1[i].money<<' '<<bz1[i].longer<<' '<<bz1[i].money1<<endl;
	for(int i=1;i<=6;i++)cout<<bz2[i].name<<' '<<bz2[i].lv<<' '<<bz2[i].sum<<' '<<bz2[i].flag<<' '<<bz2[i].gong<<' '<<bz2[i].fang<<' '<<bz2[i].money<<' '<<bz2[i].longer<<' '<<bz2[i].money1<<endl;
	for(int i=1;i<=3;i++)cout<<bz3[i].name<<' '<<bz3[i].lv<<' '<<bz3[i].sum<<' '<<bz3[i].flag<<' '<<bz3[i].gong<<' '<<bz3[i].fang<<' '<<bz3[i].money<<' '<<bz3[i].longer<<' '<<bz3[i].money1<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<sushe[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<gongchang_putong[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<gongchang_zhong[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<gold[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<yin[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<tong[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<tie[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<mei[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<shiyou[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<jing[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<quan[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<water[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<tree[i][j]<<' ';}cout<<endl;}cout<<endl;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cout<<tian[i][j]<<' ';}cout<<endl;}cout<<endl;
	fclose(stdout);
	exit(0);
}
void filein(){
	freopen("Empire-帝国.txt","r",stdin);
	cin>>people.flag;
	cin>>people.named>>people.lv>>people.money>>people.tudi>>people.day; 
    cin>>ziyuan.baoshi>>ziyuan.gold>>ziyuan.yin>>ziyuan.tong>>ziyuan.tie>>ziyuan.mei>>ziyuan.shiyou>>ziyuan.jing>>ziyuan.quan>>ziyuan.water>>ziyuan.tree>>ziyuan.money>>ziyuan.energy; 
	for(int i=1;i<=8;i++)cin>>bz1[i].name>>bz1[i].lv>>bz1[i].sum>>bz1[i].flag>>bz1[i].gong>>bz1[i].fang>>bz1[i].money>>bz1[i].longer>>bz1[i].money1;
	for(int i=1;i<=6;i++)cin>>bz2[i].name>>bz2[i].lv>>bz2[i].sum>>bz2[i].flag>>bz2[i].gong>>bz2[i].fang>>bz2[i].money>>bz2[i].longer>>bz2[i].money1;
	for(int i=1;i<=3;i++)cin>>bz3[i].name>>bz3[i].lv>>bz3[i].sum>>bz3[i].flag>>bz3[i].gong>>bz3[i].fang>>bz3[i].money>>bz3[i].longer>>bz3[i].money1;
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>sushe[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>gongchang_putong[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>gongchang_zhong[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>gold[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>yin[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>tong[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>tie[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>mei[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>shiyou[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>jing[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>quan[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>water[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>tree[i][j];}}
	for(int i=1;i<=15;i++){for(int j=0;j<=3;j++){cin>>tian[i][j];}}
	fclose(stdin);
}
int main(){
	Zy1();
	bingzhong();
	int flag=0;
	welcome();
	zhuye();
	return 0;
} 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
//____________________________________________________________________________________________________________ 
void print(const char a[],int b){
    int s=strlen(a);
    for(int i=0;i<s;i++){
        printf("%c",a[i]);
        Sleep(b);
    }
}
void Initialize(){
    system("color f0");
    RECT rect; 
    HWND hwnd=GetForegroundWindow();
    GetWindowRect(hwnd,&rect); 
    MoveWindow(hwnd,0,0,rect.right-rect.left,rect.bottom-rect.top,TRUE);
    system("mode con cols=90 lines=30");
}

void cursor(bool a){
    HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_CURSOR_INFO CursorInfo;
    GetConsoleCursorInfo(handle, &CursorInfo);
    CursorInfo.bVisible = a;
    SetConsoleCursorInfo(handle, &CursorInfo);
}
void gotoxy(int x,int y){
    COORD pos;
    pos.X=2*x;
    pos.Y=y;
    SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
void welcome(){
    Initialize();
    cursor(0);
    gotoxy(20,11);print("Empire-帝国",75);
    gotoxy(22,12);print("      by 夜阑",75);
    Sleep(60);system("cls");
    Sleep(50);
    system("cls"); 
    gotoxy(16,11);print("Illusory wind工作室",30);
    gotoxy(7,12);print("      https://www.luogu.com.cn/team/27887",30);
    Sleep(50);
    gotoxy(17,13);print("F键打开",30);
    Sleep(600);
    gotoxy(15,13);print("请输入任意键继续... ...",30);
    char k=cin.get();
    if(k=='F')system("start start https://www.luogu.com.cn/team/27887");
    Sleep(200);
    system("cls");
    return;
}
void sushe1(){
	//宿舍能装多少人
	sushe[1][1]=2;		sushe[1][2]=200;
	sushe[2][1]=10;		sushe[2][2]=500;
	sushe[3][1]=30; 	sushe[3][2]=1000;
	sushe[4][1]=70;		sushe[4][2]=1600;
	sushe[5][1]=100;	sushe[5][2]=3000;
	sushe[6][1]=120;	sushe[6][2]=3500;
	sushe[7][1]=200;	sushe[7][2]=4200;
	sushe[8][1]=300; 	sushe[8][2]=5000;
	sushe[9][1]=400;	sushe[9][2]=6400;
	sushe[10][1]=500;	sushe[10][2]=7800;
	sushe[11][1]=600;	sushe[11][2]=9000;
	sushe[12][1]=700;	sushe[12][2]=12000;
	sushe[13][1]=800; 	sushe[13][2]=13000;
	sushe[14][1]=900;	sushe[14][2]=14000;
	sushe[15][1]=1000;	sushe[15][2]=15000;
	//总人数 
	for(int i=1;i<=5;i++)sushe[0][1]+=sushe[i][1];
}
void gongchang_putong1(){
	//宿舍能装多少人
	gongchang_putong[1][1]=2;		gongchang_putong[1][2]=200;
	gongchang_putong[2][1]=10;		gongchang_putong[2][2]=500;
	gongchang_putong[3][1]=30; 		gongchang_putong[3][2]=1000;
	gongchang_putong[4][1]=70;		gongchang_putong[4][2]=1600;
	gongchang_putong[5][1]=100;		gongchang_putong[5][2]=3000;
	gongchang_putong[6][1]=120;		gongchang_putong[6][2]=3500;
	gongchang_putong[7][1]=200;		gongchang_putong[7][2]=4200;
	gongchang_putong[8][1]=300; 	gongchang_putong[8][2]=5000;
	gongchang_putong[9][1]=400;		gongchang_putong[9][2]=6400;
	gongchang_putong[10][1]=500;	gongchang_putong[10][2]=7800;
	gongchang_putong[11][1]=600;	gongchang_putong[11][2]=9000;
	gongchang_putong[12][1]=700;	gongchang_putong[12][2]=12000;
	gongchang_putong[13][1]=800; 	gongchang_putong[13][2]=13000;
	gongchang_putong[14][1]=900;	gongchang_putong[14][2]=14000;
	gongchang_putong[15][1]=1000;	gongchang_putong[15][2]=15000;
	//总人数 
	for(int i=1;i<=5;i++)gongchang_putong[0][1]+=gongchang_putong[i][1];
}
void gongchang_zhong1(){
	//宿舍能装多少人
	gongchang_zhong[1][1]=2;	gongchang_zhong[1][2]=200;
	gongchang_zhong[2][1]=10;	gongchang_zhong[2][2]=500;
	gongchang_zhong[3][1]=30; 	gongchang_zhong[3][2]=1000;
	gongchang_zhong[4][1]=70;	gongchang_zhong[4][2]=1600;
	gongchang_zhong[5][1]=100;	gongchang_zhong[5][2]=3000;
	gongchang_zhong[6][1]=120;	gongchang_zhong[6][2]=3500;
	gongchang_zhong[7][1]=200;	gongchang_zhong[7][2]=4200;
	gongchang_zhong[8][1]=300; 	gongchang_zhong[8][2]=5000;
	gongchang_zhong[9][1]=400;	gongchang_zhong[9][2]=6400;
	gongchang_zhong[10][1]=500;	gongchang_zhong[10][2]=7800;
	gongchang_zhong[11][1]=600;	gongchang_zhong[11][2]=9000;
	gongchang_zhong[12][1]=700;	gongchang_zhong[12][2]=12000;
	gongchang_zhong[13][1]=800; gongchang_zhong[13][2]=13000;
	gongchang_zhong[14][1]=900;	gongchang_zhong[14][2]=14000;
	gongchang_zhong[15][1]=1000;gongchang_zhong[15][2]=15000;
	//总人数 
	for(int i=1;i<=5;i++)gongchang_zhong[0][1]+=gongchang_zhong[i][1];
}
void gold1(){
	//金矿能产多少金子  //升级需要多少钱 
	gold[1][1]=10;		gold[1][2]=200;
	gold[2][1]=20;		gold[2][2]=500;
	gold[3][1]=50; 		gold[3][2]=1000;
	gold[4][1]=90;		gold[4][2]=1600;
	gold[5][1]=150;		gold[5][2]=3000;
	gold[6][1]=250;		gold[6][2]=3500;
	gold[7][1]=380;		gold[7][2]=4200;
	gold[8][1]=500; 	gold[8][2]=5000;
	gold[9][1]=750;		gold[9][2]=6400;
	gold[10][1]=900;	gold[10][2]=7800;
	gold[11][1]=1250;	gold[11][2]=9000;
	gold[12][1]=2640;	gold[12][2]=12000;
	gold[13][1]=3000; 	gold[13][2]=13000;
	gold[14][1]=4000;	gold[14][2]=14000;
	gold[15][1]=5000;	gold[15][2]=15000;
	//总产量 
	for(int i=1;i<=15;i++)gold[0][1]+=gold[i][1];
}
void yin1(){
	//银矿能产多少银子//升级需要多少钱 
	yin[1][1]=20;		yin[1][2]=200;
	yin[2][1]=30;		yin[2][2]=500;
	yin[3][1]=50; 		yin[3][2]=1000;
	yin[4][1]=90;		yin[4][2]=1600;
	yin[5][1]=190;		yin[5][2]=3000;
	yin[6][1]=300;		yin[6][2]=3500;
	yin[7][1]=500;		yin[7][2]=4200;
	yin[8][1]=600; 		yin[8][2]=5000;
	yin[9][1]=900;		yin[9][2]=6400;
	yin[10][1]=1000;	yin[10][2]=7800;
	yin[11][1]=1300;	yin[11][2]=9000;
	yin[12][1]=2800;	yin[12][2]=12000;
	yin[13][1]=3500; 	yin[13][2]=13000;
	yin[14][1]=4900;	yin[14][2]=14000;
	yin[15][1]=6000;	yin[15][2]=15000;
	//总产量 
	for(int i=1;i<=15;i++)yin[0][1]+=yin[i][1];
}
void tong1(){
	//铜矿能产多少铜
	tong[1][1]=30;
	tong[2][1]=50;
	tong[3][1]=80; 
	tong[4][1]=100;
	tong[5][1]=220;
	tong[6][1]=350;
	tong[7][1]=590;
	tong[8][1]=720; 
	tong[9][1]=100;
	tong[10][1]=1200;
	tong[11][1]=1500;
	tong[12][1]=3000;
	tong[13][1]=3900; 
	tong[14][1]=5000;
	tong[15][1]=6500;
	//升级需要多少钱 
	tong[1][2]=200;
	tong[2][2]=500;
	tong[3][2]=1000;
	tong[4][2]=1600;
	tong[5][2]=3000;
	tong[6][2]=3500;
	tong[7][2]=4200;
	tong[8][2]=5000;
	tong[9][2]=6400;
	tong[10][2]=7800;
	tong[11][2]=9000;
	tong[12][2]=12000;
	tong[13][2]=13000;
	tong[14][2]=14000;
	tong[15][2]=15000;
	//总产量 
	for(int i=1;i<=15;i++)tong[0][1]+=tong[i][1];
}
void baoshi1(){
	//宝石能产多少宝石
	baoshi[1][1]=15;	baoshi[1][2]=200;
	baoshi[2][1]=30;	baoshi[2][2]=300;
	baoshi[3][1]=55; 	baoshi[3][2]=550; 
	baoshi[4][1]=100;	baoshi[4][2]=1000;
	baoshi[5][1]=200;	baoshi[5][2]=2000;
	baoshi[6][1]=350;	baoshi[6][2]=3500;
	baoshi[7][1]=500;	baoshi[7][2]=5000;
	baoshi[8][1]=720;	baoshi[8][2]=7200;
	baoshi[9][1]=860;	baoshi[9][2]=8600;
	baoshi[10][1]=990;	baoshi[10][2]=9900;
	baoshi[11][1]=1520;	baoshi[11][2]=15200;
	baoshi[12][1]=1940;	baoshi[12][2]=19400;
	baoshi[13][1]=2200;	baoshi[13][2]=22000;
	baoshi[14][1]=2600;	baoshi[14][2]=26000;
	baoshi[15][1]=3000;	baoshi[15][2]=30000;
	
	//升级需要多少钱 
	//总产量 
	for(int i=1;i<=15;i++)baoshi[0][1]+=baoshi[i][1];
}
void tie1(){
	//铁能产多少铁
	tie[1][1]=50;
	tie[2][1]=80;
	tie[3][1]=200; 
	tie[4][1]=500;
	tie[5][1]=800;
	tie[6][1]=1300;
	tie[7][1]=1800;
	tie[8][1]=2200;
	tie[9][1]=2600;
	tie[10][1]=3400;
	tie[11][1]=4000;
	tie[12][1]=4900;
	tie[13][1]=5800;
	tie[14][1]=6500;
	tie[15][1]=8000;
	
	//升级需要多少钱 
	tie[1][2]=200;
	tie[2][2]=300;
	tie[3][2]=550; 
	tie[4][2]=1000;
	tie[5][2]=2000;
	tie[6][2]=3500;
	tie[7][2]=5000;
	tie[8][2]=7200;
	tie[9][2]=8600;
	tie[10][2]=9900;
	tie[11][2]=15200;
	tie[12][2]=19400;
	tie[13][2]=22000;
	tie[14][2]=26000;
	tie[15][2]=30000;
	//总产量 
	for(int i=1;i<=15;i++)tie[0][1]+=tie[i][1];
}
void mei1(){
	//煤能产多少煤
	mei[1][1]=500;
	mei[2][1]=800;
	mei[3][1]=2000; 
	mei[4][1]=5000;
	mei[5][1]=8000;
	mei[6][1]=13000;
	mei[7][1]=18000;
	mei[8][1]=22000;
	mei[9][1]=26000;
	mei[10][1]=34000;
	mei[11][1]=40000;
	mei[12][1]=49000;
	mei[13][1]=58000;
	mei[14][1]=65000;
	mei[15][1]=80000;
	
	//升级需要多少钱 
	mei[1][2]=200;
	mei[2][2]=300;
	mei[3][2]=550; 
	mei[4][2]=1000;
	mei[5][2]=2000;
	mei[6][2]=3500;
	mei[7][2]=5000;
	mei[8][2]=7200;
	mei[9][2]=8600;
	mei[10][2]=9900;
	mei[11][2]=15200;
	mei[12][2]=19400;
	mei[13][2]=22000;
	mei[14][2]=26000;
	mei[15][2]=30000;
	//总产量 
	for(int i=1;i<=15;i++)mei[0][1]+=mei[i][1];
} 
void shiyou1(){
	//石油机能产多少石油//升级需要多少钱 
	shiyou[1][1]=50;	shiyou[1][2]=2000;
	shiyou[2][1]=80;	shiyou[2][2]=3000;
	shiyou[3][1]=200; 	shiyou[3][2]=5500; 
	shiyou[4][1]=500;	shiyou[4][2]=10000;
	shiyou[5][1]=800;	shiyou[5][2]=20000;
	shiyou[6][1]=1300;	shiyou[6][2]=35000;
	shiyou[7][1]=1800;	shiyou[7][2]=50000;
	shiyou[8][1]=2200;	shiyou[8][2]=72000;
	shiyou[9][1]=2600;	shiyou[9][2]=86000;
	shiyou[10][1]=3400;	shiyou[10][2]=99000;
	shiyou[11][1]=4000;	shiyou[11][2]=152000;
	shiyou[12][1]=4900;	shiyou[12][2]=194000;
	shiyou[13][1]=5800;	shiyou[13][2]=220000;
	shiyou[14][1]=6500;	shiyou[14][2]=260000;
	shiyou[15][1]=8000;	shiyou[15][2]=300000;
	//总产量 
	for(int i=1;i<=15;i++)shiyou[0][1]+=shiyou[i][1];
}
void jing1(){
	//能量水晶矿能产多少水晶//升级需要多少钱 
	jing[1][1]=10;		jing[1][2]=2000;
	jing[2][1]=20;		jing[2][2]=5000;
	jing[3][1]=50; 		jing[3][2]=10000;
	jing[4][1]=90;		jing[4][2]=16000;
	jing[5][1]=150;		jing[5][2]=30000;
	jing[6][1]=250;		jing[6][2]=35000;
	jing[7][1]=380;		jing[7][2]=42000;
	jing[8][1]=500; 	jing[8][2]=50000;
	jing[9][1]=750;		jing[9][2]=64000;
	jing[10][1]=900;	jing[10][2]=78000;
	jing[11][1]=1250;	jing[11][2]=90000;
	jing[12][1]=2640;	jing[12][2]=120000;
	jing[13][1]=3000; 	jing[13][2]=130000;
	jing[14][1]=4000;	jing[14][2]=140000;
	jing[15][1]=5000;	jing[15][2]=150000;
	//总产量 
	for(int i=1;i<=5;i++)jing[0][1]+=jing[i][1];
}
void quan1(){
	//圣泉瓶能产多少圣泉//升级需要多少钱 
	quan[1][1]=10;		quan[1][2]=4000;
	quan[2][1]=20;		quan[2][2]=10000;
	quan[3][1]=50; 		quan[3][2]=20000;
	quan[4][1]=90;		quan[4][2]=32000;
	quan[5][1]=150;		quan[5][2]=60000;
	quan[6][1]=250;		quan[6][2]=70000;
	quan[7][1]=380;		quan[7][2]=84000;
	quan[8][1]=500; 	quan[8][2]=100000;
	quan[9][1]=750;		quan[9][2]=128000;
	quan[10][1]=900;	quan[10][2]=156000;
	quan[11][1]=1250;	quan[11][2]=180000;
	quan[12][1]=2640;	quan[12][2]=240000;
	quan[13][1]=3000; 	quan[13][2]=260000;
	quan[14][1]=4000;	quan[14][2]=280000;
	quan[15][1]=5000;	quan[15][2]=300000;
	//总产量 
	for(int i=1;i<=5;i++)quan[0][1]+=quan[i][1];
}
void water1(){
	//取水机能产多少水  //升级需要多少钱 
	water[1][1]=100;	water[1][2]=40;
	water[2][1]=200;	water[2][2]=100;
	water[3][1]=500; 	water[3][2]=200;
	water[4][1]=900;	water[4][2]=320;
	water[5][1]=1500;	water[5][2]=600;
	water[6][1]=2500;	water[6][2]=700;
	water[7][1]=3800;	water[7][2]=840;
	water[8][1]=5000; 	water[8][2]=1000;
	water[9][1]=7500;	water[9][2]=1280;
	water[10][1]=9000;	water[10][2]=1560;
	water[11][1]=12500;	water[11][2]=1800;
	water[12][1]=26400;	water[12][2]=2400;
	water[13][1]=30000; water[13][2]=2600;
	water[14][1]=40000;	water[14][2]=2800;
	water[15][1]=50000;	water[15][2]=3000;
	//总产量 
	for(int i=1;i<=5;i++)water[0][1]+=water[i][1];
}
void tree1(){
	//取水机能产多少水  //升级需要多少钱 
	tree[1][1]=1000;	tree[1][2]=40;
	tree[2][1]=2000;	tree[2][2]=100;
	tree[3][1]=5000; 	tree[3][2]=200;
	tree[4][1]=9000;	tree[4][2]=320;
	tree[5][1]=15000;	tree[5][2]=600;
	tree[6][1]=25000;	tree[6][2]=700;
	tree[7][1]=38000;	tree[7][2]=840;
	tree[8][1]=50000; 	tree[8][2]=1000;
	tree[9][1]=75000;	tree[9][2]=1280;
	tree[10][1]=90000;	tree[10][2]=1560;
	tree[11][1]=125000;	tree[11][2]=1800;
	tree[12][1]=264000;	tree[12][2]=2400;
	tree[13][1]=300000;	tree[13][2]=2600;
	tree[14][1]=400000;	tree[14][2]=2800;
	tree[15][1]=500000;	tree[15][2]=3000;
	//总产量 
	for(int i=1;i<=5;i++)tree[0][1]+=tree[i][1];
}
void tian1(){
	//田地能产多少粮食  //升级需要多少钱 
	tian[1][1]=10;		tian[1][2]=400;
	tian[2][1]=20;		tian[2][2]=1000;
	tian[3][1]=50; 		tian[3][2]=2000;
	tian[4][1]=90;		tian[4][2]=3200;
	tian[5][1]=150;		tian[5][2]=6000;
	tian[6][1]=250;		tian[6][2]=7000;
	tian[7][1]=380;		tian[7][2]=8400;
	tian[8][1]=500; 	tian[8][2]=10000;
	tian[9][1]=750;		tian[9][2]=12800;
	tian[10][1]=900;	tian[10][2]=15600;
	tian[11][1]=1250;	tian[11][2]=18000;
	tian[12][1]=2640;	tian[12][2]=24000;
	tian[13][1]=3000;	tian[13][2]=26000;
	tian[14][1]=4000;	tian[14][2]=28000;
	tian[15][1]=5000;	tian[15][2]=30000;
	//总产量 
	for(int i=1;i<=5;i++)tian[0][1]+=tian[i][1];
}
void Zy1(){//计算资源 
	sushe1();
	gongchang_putong1();
	gongchang_zhong1();
	gold1();
	yin1();
	tong1();
	baoshi1();
	tie1();
	mei1();
	shiyou1();
	jing1();
	quan1();
	water1(); 
	tree1();
	ziyuan.baoshi=baoshi[0][1];//宝石 
	ziyuan.gold=gold[0][1];//金 
	ziyuan.jing=jing[0][1];//晶石 
	ziyuan.mei=mei[0][1];//煤 
	ziyuan.quan=quan[0][1];//圣泉 
	ziyuan.shiyou=shiyou[0][1];//石油 
	ziyuan.tie=tie[0][1];//铁 
	ziyuan.tong=tong[0][1];//铜 
	ziyuan.tree=tree[0][1];//木材 
	ziyuan.water=water[0][1];//水 
	ziyuan.yin=yin[0][1];//银 
	ziyuan.money=ziyuan.baoshi*1000+ziyuan.gold*500+ziyuan.yin*200+ziyuan.tong*100;//交易货币
	ziyuan.energy=ziyuan.mei/10*3+ziyuan.shiyou/10*9+ziyuan.jing*5;//能源
}
void bingzhong(){
	//flag=1步兵 
	bz1[1].name="原始人";bz1[1].lv=1;bz1[1].sum=0;bz1[1].flag=1;bz1[1].gong=10;bz1[1].fang=5;bz1[1].longer=0;
	bz1[2].name="长矛兵";bz1[2].lv=1;bz1[2].sum=0;bz1[2].flag=1;bz1[2].gong=15;bz1[2].fang=5;bz1[2].longer=0;
	bz1[3].name="长刀兵";bz1[3].lv=1;bz1[3].sum=0;bz1[3].flag=1;bz1[3].gong=20;bz1[3].fang=5;bz1[3].longer=0;
	bz1[4].name="矛盾兵";bz1[4].lv=1;bz1[4].sum=0;bz1[4].flag=1;bz1[4].gong=15;bz1[4].fang=15;bz1[4].longer=0;
	bz1[5].name="刀盾兵";bz1[5].lv=1;bz1[5].sum=0;bz1[5].flag=1;bz1[5].gong=20;bz1[5].fang=15;bz1[5].longer=0;
	bz1[6].name="方阵兵";bz1[6].lv=1;bz1[6].sum=0;bz1[6].flag=1;bz1[6].gong=100;bz1[6].fang=50;bz1[6].longer=0;
	bz1[7].name="中世纪步兵";bz1[7].lv=1;bz1[7].sum=0;bz1[7].flag=1;bz1[7].gong=110;bz1[7].fang=20;bz1[7].longer=0;
	bz1[8].name="罗马武士";bz1[8].lv=1;bz1[8].sum=0;bz1[8].flag=1;bz1[8].gong=70;bz1[8].fang=30;bz1[8].longer=0;
	//flag=2射手 
	bz2[1].name="吹箭兵";bz2[1].lv=1;bz2[1].sum=0;bz2[1].flag=2;bz2[1].gong=20;bz2[1].fang=5;bz2[1].longer=10;
	bz2[2].name="短弓兵";bz2[2].lv=1;bz2[2].sum=0;bz2[2].flag=2;bz2[2].gong=25;bz2[2].fang=5;bz2[2].longer=20;
	bz2[3].name="长弓兵";bz2[3].lv=1;bz2[3].sum=0;bz2[3].flag=2;bz2[3].gong=30;bz2[3].fang=5;bz2[3].longer=30; 
	bz2[4].name="弩兵";bz2[4].lv=1;bz2[4].sum=0;bz2[4].flag=2;bz2[4].gong=50;bz2[4].fang=10;bz2[4].longer=50; 
	bz2[5].name="十字弩兵[狙击手]";bz2[5].lv=1;bz2[5].sum=0;bz2[5].flag=2;bz2[5].gong=100;bz2[5].fang=0;bz2[5].longer=500;  
	bz2[6].name="火铳兵";bz2[6].lv=1;bz2[6].sum=0;bz2[6].flag=2;bz2[6].gong=50;bz2[6].fang=20;bz2[6].longer=40;
	//flag=3水军
	bz3[1].name="独木舟小分队";bz3[1].lv=1;bz3[1].sum=0;bz3[1].flag=3;bz3[1].gong=20;bz3[1].fang=10;bz3[1].longer=0;
	bz3[2].name="木筏小分队";bz3[2].lv=1;bz3[2].sum=0;bz3[2].flag=3;bz3[2].gong=30;bz3[2].fang=20;bz3[2].longer=0;
	bz3[3].name="三角帆船分队";bz3[3].lv=1;bz3[3].sum=0;bz3[3].flag=3;bz3[3].gong=40;bz3[3].fang=30;bz3[3].longer=0;
	
}
void xitong1(){
	string talkm="[终级管理员-夜阑]:";
	string talkn="[系统管理员-秩序之龙]:";
	cout<<talkm;print("又来了一个新的玩家,这里是新手大厅~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("我是这个游戏的制作者&管理员,如果想要加入我们工作室,就来洛谷找我吧~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("下面,你要新建一个帝国~,为你的帝国起一个霸气的名字吧~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("帝国的名称:",75);Sleep(200);cin>>people.named;
	cout<<talkm;print("定义好你的国家,你就可以查看国家里的资源,人口,设施,兵力了~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("土地和人口是帝国的根本,如果土地和人口同时为0,则游戏结束~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("如果土地被完全侵占而人口还有,你可以另建帝国",25);cout<<endl;Sleep(200);
	cout<<talkm;print("人口会自然发展(有土地)",25);cout<<endl;Sleep(200);
	cout<<talkm;print("矿工发展需要足够的建筑工人,而建筑工人需要足够的食物,它们来自于农民和农副业者",25);cout<<endl;Sleep(200);
	cout<<talkm;print("工业发展需要足够的工厂和原材料,而这些来自于建筑工人,矿工和农副业者",25);cout<<endl;Sleep(200);
	cout<<talkm;print("科技研究需要足够的科研环境,经费和科研人员,这些来自于建筑工人和教育系统(人才高于一切)",25);cout<<endl;Sleep(200);
	cout<<talkm;print("军事准备需要科技,军工和资源,这些来自于科技研究,工业发展和矿工发展",25);cout<<endl;Sleep(200);
	cout<<talkm;print("商业需要足够多的产品,金钱和便利的交通,这些来自于工农业,矿产和建筑工人",25);cout<<endl;Sleep(200);
	cout<<talkm;print("大航海是商业的分支,它和商业一样的要求并需要足够多,足够强大的海上商队,这些来自于工农业,矿产和建筑工人",25);cout<<endl;Sleep(200);
	cout<<talkm;print("战争模式需要足够多的军事设施,军人和足够多的经费,粮食,你还要做好战败的准备",25);cout<<endl;Sleep(200);
	cout<<talkm;print("接下来就是最重要的'民生'(打字打累死了,我恨打字!!!)",25);cout<<endl;Sleep(200);
	cout<<talkm;print("你要合理的分配职业岗位,住宿设施,教育资源和饮食资源,如果失调则会导致民心下降,影响到军心的数值",25);cout<<endl;Sleep(200);
	cout<<talkm;print("如果民心下降,会导致生产力,城市防御力下降,使对方招降成功率提升",25);cout<<endl;Sleep(200);
	cout<<talkm;print("如果军心下降,会导致战斗力,服从值下降(服从值下降,军人会不听你的),使战胜几率减少,战败后投降的几率提高",25);cout<<endl;Sleep(200);
	cout<<talkm;print("当然,你也可以通过调整分配来回复民心值,通过回复民心值或打出胜仗来,提高战斗力来回复军心值",25);cout<<endl;Sleep(200);
	cout<<talkm;print("你可以通过制造谣言或招降,降低军心,民心值,来提高战胜率,战场之上,军心至关重要",25);cout<<endl;Sleep(200);
	cout<<talkm;print("战败会导致军心值略微下降,但不会低于初始值100",25);cout<<endl;Sleep(200);
	cout<<talkm;print("说完了民生,我们就来看看帝国的地理环境吧~",25);cout<<endl;Sleep(200);
	watch_map1();
	cout<<talkm;print("看完地图,你应该了解一些关于周围地理环境了吧~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("正所谓天时不如地利,地利不如人和,你的地理环境固然适合前期发展,但是强大的帝国还是需要你自己的勤政~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("对了,如果还有什么问题或者想要交易什么高端东西,可以去'最终之门'来找我哟~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("在你lv.15以后'最终之门'有几率会举行军演,参加可以提升战斗力和军功值~",25);cout<<endl;Sleep(200);
	cout<<talkm;print("我在'最终之门'等着你~",25);cout<<endl;Sleep(200);
	cout<<talkn;print("恭喜你成功建立你的帝国......",25);cout<<endl;Sleep(200);
	cout<<talkn;print("新手任务结束......",25);cout<<endl;Sleep(200);
	cout<<talkn;print("任务完成,你得到了100金币,20块晶石,2间满级(lv.15)建筑工人宿舍作为新手礼包",25);cout<<endl;Sleep(200);
	ziyuan.gold+=100;
	ziyuan.jing+=20;
	sushe[15][0]+=2;
}
void zhuye(){
	int choice=-1;
	while(choice!=0){
		cout<<"[Empire-帝国]Game hall-游戏大厅"<<endl;Sleep(200);
		cout<<"[1]Blackberry Newbie-新人报到/创建国家(lv.1)"<<endl;Sleep(200);
		cout<<"[2]agricultural-农业/农副业发展(lv.2开始)"<<endl;Sleep(200);
		cout<<"[3]Mining industry-矿工发展(lv.5开始)"<<endl;Sleep(200);
		cout<<"[4]industrial-工业发展(lv.10开始)"<<endl;Sleep(200);
		cout<<"[5]scientific-科技研究(lv.13开始)"<<endl;Sleep(200);
		cout<<"[5]military-军事准备(lv.2开始)"<<endl;Sleep(200);
		cout<<"[6]business-商业模式[后期必备](lv.15开始)"<<endl;Sleep(200);
		cout<<"[7]Sea Patrol-大航海[后期必备](lv.30开始)"<<endl;Sleep(200); 
		cout<<"[8]Warfare-战争模式[所有人所期待的](lv.2开始)"<<endl;Sleep(200);
		cout<<"[9]Oneself-我的帝国"<<endl;Sleep(200);
		cout<<"[10]residence-居民区"<<endl;Sleep(200); 
		cout<<"[11]join us-加入工作室"<<endl;Sleep(200);
		cout<<"[12]another day-跳过今天"<<endl;Sleep(200);
		cout<<"[0]sign out-退出"<<endl;Sleep(200);
		cin>>choice;
		if(choice==1)xitong1();
		if(choice==2&&people.flag==true){	
			
		}
	}
}
void xitong2(){
	string talkn="[系统管理员-秩序之龙]:";
	cout<<talkn;print("欢迎进入农业时代~",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	cout<<talkn;print("",25);cout<<endl;Sleep(200);
	
} 

 

许金夫在2020-07-27 21:21:52追加了内容

我这没有错呀,@余彦文,@徐子宸

许金夫在2020-07-27 22:56:26追加了内容

各位,有没有大佬给我提供一点技术支持~我发现有些BUG我一个人修不过来,比如某同学说他报错了8000+个Error(55555555)

还有一些算法我一个人做不出来,比如建造同时建造一堆东西,怎么计算时间...

总之,希望大佬们前来帮忙,等到8月阶段考试考完了,抽空大家一起加QQ一起爆肝代码~


0
已采纳
陈喆鹏
陈喆鹏
资深光能
资深光能

他人不熟悉你编的函数名与变量名,我编自己的游戏都会忘(毕竟太长了)

0
董宇昊
董宇昊
初级启示者
初级启示者

太长了,错误连老师都不一定能找全

0
0
王子逸
王子逸
新手天翼
新手天翼

判断时间可以解决

插入类型的用字符串强行判断

判断日期的代码自己搜

或者整片代码都要时间的用Sleep  要放主函数里 

0
余彦文
余彦文
初级光能
初级光能

嗯……我把数据整理了一下,错误的是
[Error] 'Bz1::gong' cannot appear in a constant-expression

翻译: [错误]“Bz1::gong”不能出现在常量表达式中

[Error] 'Bz1::fang' cannot appear in a constant-expression 

翻译: [错误]“Bz1::fang”不能出现在常量表达式中

大概意思是你的'gong'和'fang'不可以用于常用表达式中,就代表了'gong'和'fang'不可以参与计算

目前只看懂了这个

余彦文在2020-07-28 10:50:56追加了内容

QQ是多少,我看我妈同不同意加你

余彦文在2020-07-28 14:21:32追加了内容

对了,你这个是用什么编译器?

余彦文在2020-07-28 19:44:01追加了内容

好了,我妈同意我加你好友了

0
潘晨皓
潘晨皓
高级天翼
高级天翼

这……

我的这上面报错了XXXX

这是WHAT ?

0
王文博
王文博
缔造者之神
缔造者之神

问题太多啦,我也无能为力。

加油!!!!!

0
王子健
王子健
初级天翼
初级天翼

你阶段考考过了吗?就是邢老师那个班的

0
王文博
王文博
缔造者之神
缔造者之神

建议你放弃这个代码吧。

0
徐子宸
徐子宸
中级天翼
中级天翼

为什么错误数已经刷到8888还没完

0
0
余彦文
余彦文
初级光能
初级光能

@许金夫 ,代码爆了10000多个错误,望修复

ps:大佬可以带我一起爆肝嘛?

 

余彦文在2020-07-27 21:30:47追加了内容

余彦文在2020-07-27 21:32:25追加了内容

好像不是一种语言

我看看能不能翻成C++的

余彦文在2020-07-27 22:05:12追加了内容

@许金夫 

???

 

0
刘景程
刘景程
新手光能
新手光能

你这个项目太大了,不好搞啊

我也有类似的构建,但是没有搞完

后排兜售小黑猫

我要回答