人生之路1.20代码 第一部分

代码不止这一段,不止这一段,不止这一段!!!

点我查看全部代码

1~2500

#include<algorithm>
#include<cmath>
#include<vector>
#include<stdio.h>
#include<iostream>
#include<string>
#include<cstring>
#include<windows.h>
#include<conio.h>
#include<cstdlib>
#include<ctime>
#include<fstream>
using namespace std;
/*********全局变量声明*********/
long long kaishi;//开始时间 
const int cjnum=64;
string cj[100]=//成就名称 
{"",
//  1      		2			3				4			5
  "旅程的起点","2^11","逃跑专家","长命百岁","学习狂魔",
//	6				7			8			9			10
  "艺术就是爆炸!","富甲一方","电脑高手","学霸再现江湖","登山游记",
//	11			12			13				14			15
  "天上的城市","钻石!","挖矿时间到","可怕的影子","这就是作者",
//	16		17		18				19			20
  "老赌徒","富二代","真是个肉盾","出击时间到!","光头强",
//	21				22			23			24			25
  "是时候继续挖矿了","怪物猎人","用钻石包裹我","超级英雄","虚空来客",
//	26			27			28				29				30
  "附魔师","量子幽灵在手","大悲咒","长线挂机","现在没空",
//	31			   32				33		34			35			36
  "黑漆漆的树林","鸭蛋还是鸡蛋","结束了?","旅途的终点","梦境回魂","获得升级",
// 37			38		   39		40		41			42			43 
  "赌博高手","甜蜜的梦","斗牛士","扫雷战士","妙手回春","时间恶魔","再一次到达终点",
//44		45			46 			47			48				49			50
  "弹无虚发","主宰全场","恶魔终结者","游戏高手","怪物狩猎完成","资深游戏专家","人生赢家",
  
  //隐藏成就
//51			52			53		54				55			56
 "天谴之人","交友达人","闹事达人","就是这么任性","写作高手","赌神",
//57		58			59			60			61		62
 "败家子儿","赚钱达人","食神助我","大预言家","复读机","急先锋",
//63			64
 "一时失手","失手成习惯",
};
string what_do[100]=//完成成就的要求 
{"",
  "进入游戏","玩2048成功一次","在神殿逃跑50次","活到100岁","看过所有的学习提示(共27条)",
  "用【春节礼炮】炸死166只怪物","拥有的零花钱超过100000","某次打字游戏速度超过250字/分钟","考一次100分","某一次登山成功",
  "去到天空之境","获得一颗钻石","获得一把铁镐","遇见一次游魂","遇见一次作者",
  "去赌场进行一次“赌大小”","在小学阶段零花钱数量达到1000000","血量超过1000","拥有一把铁剑","砍一次树",
  "打造一把钻石镐","击杀一次僵尸或骷髅","拥有一套钻石套装(注:最后做鞋子)","拥有一套英雄套装(注:最后做鞋子)","拥有一套虚空套装(注:最后做鞋子)",
  "拥有一个附魔台","拥有一把量子剑","默读《大悲咒》一次","获取一次至少8小时的挂机收益","连续48小时不上线,再次领取挂机收益即可获得",
  "去一次小树林","考一次0分","进入第六章","通过第六章","???","升一次级",
  "猜大小连中5次","在家睡一次觉","猎杀一头牛","某次“扫雷”成功","请“神医”为你治疗一次", "用“恶魔沙漏”修改一次时间轨迹", 
  "第二次击败MCYH","连续打猎打中20次","在竞技场连胜15局","终结恶魔领主","在创建游戏后的10分钟之内通关","累计击杀50只怪物",
  "使用过游戏中所有功能(除了隐藏功能一共74个)", "完成所有成就(隐藏成就除外)并且等级达到50级以上",
  //隐藏成就
  "被闪电劈死一次","让全班同学都成为你的好友","打架50次","开局时连点4个“否”","日记长度达到20K","中20张彩票",
  "累计开销/损失达到500G","累计赚取500G钱","饱食度达到50K","在被算命先生预言期间死亡一次","在寺庙里反复重复一句话5次",
  "在帮派战役中杀死50人","杀死一名自己帮派成员","杀死十名自己帮派成员",
};
bool gn[200];//功能使用flag 
unsigned long long gotmoney;//收入的钱数 
long long things[2000];//基本数据储存 
/*
0章节 1XP 2HP 3hungry 4water 5attack 6run 7money 8level 9等级 10age 
11棒棒糖 12面包 13矿泉水 14小瓶子 15玩具枪 16天数 17朋友数量 18次数 
19学号 20最高成绩 21难度 22存档是否存在 23打架次数 24和作者打架 
25回家次数 26剧情 27打猎资格 28大学 29挂机收益 30挂机上限 31沙漏
32附魔台 33附魔石 34更新 35管理员模式 36最高等级 37~57兑换码 
58~68活动是否参与过 69连中次数 70~79技能书 80隐藏进度条 81连中打猎
82竞技场连胜 83累计杀怪 84累计使用功能 85银行卡号 89密码 93余额
98维度 99传送符 100~184成就 185存档编号 186颜色 187今日事件 188形式 
189成就5完成进度 190死亡次数 191Pet数量 192是否已读取存档 193去神殿次数 
194通关神殿次数 195成就完成数量 196在神殿被炸死次数 197艺术就是爆炸记录 
198中彩票次数 199受限 200帮派加入申请人数(随机) 201~205修仙条件 
206~255各种丹药数量 256红水晶 257紫水晶 258蓝水晶 259黑水晶 260仙丹石
261奥玄石 262玄彩石 263白虎石 264朱雀石 265青龙石 266玄武石 267麒麟内丹
268麒麟石 269彩陶石 270炼丹炉 301上次领取魔金丹的时间 202上次领取材料的时间 
303修炼进度 304身份 305复读机进度 306急先锋进度 307失手进度 308生日礼物领取 
*/ 

//1当日运势(1~8:大凶,半凶,中平,小吉,中吉,大吉) 
void use(int n)
{
	if (gn[n]==false)
	  gn[n]=true,things[84]++;
}
long long fost[200];//小森林背包储存 
/*******/
string fsn[200]=//小森林背包物品名称 
{"原木 ","木板 ","木棍 ","石头 ","铁锭 ","金锭 ","钻石 ",
 "木镐 ","石镐 ","铁镐 ","金镐 ","钻石镐 ",
 "木剑 ","石剑 ","铁剑 ","金剑 ","钻石剑 ",
 "木斧 ","石斧 ","铁斧 ","金斧 ","钻石斧 ",
 "春节礼炮","火药","铁块","金块","钻石块",
 /*27*/"铁头盔","铁胸甲","铁护腿","铁靴子",
 "金头盔","金胸甲","金护腿","金靴子",
 "钻石头盔","钻石胸甲","钻石护腿","钻石靴子",
 /*39*/"英雄头盔","英雄战甲","英雄护腿","英雄战靴","英雄剑","英雄镐","英雄战斧",
 /*46*/"虚空头盔","虚空战甲","虚空护腿","虚空战靴","虚空剑","虚空镐","虚空斧",
 /*53*/"量子剑", "石头精华","CPU","工业钻石", 
};
string studentname[40]=//同学名称 
{"APEAPC","CIRCECLE","PAOE","FICE","CLEA","JACK","YZC","CODE","CPERA","FODAP","DIA","DOACKER",
"AOEE","ROD","RAUDJE","FIC","CZKD","AIDE","AKTI","MCAO","WAL","YZR","DEFASE","WKD","RKDOAE",
"FPEO","LCOE","LCOEOO","WAH","OCID","CIE","WYQ","PACOE","CDEFK","CKDO","CIDEP","MCYH",
"IDA","FIAOEP","FODA",
};
struct Time
{
	int year,month,day,hour,minute,second;
};
struct Player
{
	int y,m,d,age;
	int play,gang;
};
Player me;
string student[40];//存档同学名称 
const unsigned long long sj[]=//升级所需经验值 
{
//0 1  2   3   4   5    6   7     8    9   10    11   12    13     14   15    16    17      18    19      20    21      22    22                                                                                                                                                                                                                                                                                                                                            
  0,0,100,300,500,800,1500,2122,4500,6821,8933,13382,20091,38392,59183,70003,89312,100033,110344,130953,150099,169821,193831,229183,
//  24      25     26      27       28     29     30       31     32       33     34       35     36        37       38       39       40      41        42                                                                                                                                  
  500000,867132,1102933,1491839,1783021,2092103,2819382,3857192,4561738,5637139,7003928,8563729,10000000,10092819,11928372,12837291,14838279,16738291,18973820,
//   43         44      45      46       47     48      49      50     51       52     53        54     55      56     57       58      59      60      61                                                                                                
  20093819,23849577,25860392,28039281,3003920,3120392,3302910,3939201,4029102,4392018,4592018,4672103,4800928,5028102,5193029,5392010,5503921,5872810,6839201,
//    62     63      64      65      66      67       68         69    70       71       72          73      74         75      76      77      78       79                                                         
  7293829,7495820,7888930,8139002,8873029,9567291,10093829,11293029,13930295,15930281,169302810,18392910,22839020,28739201,38392819,50009329,74892396,99837281,
//    80         81        82        83         84     85      86            87      88        89         90        91       92        93        94        95                                                                                                                         
  103958372,113837293,136573829,157683920,175837292,183726195,200999887,218376859,239837261,254637289,267392019,289383910,309201839,339281039,358372918,381039283,
//     96        97        98       99      100        101         102      103       104      105       106        107     108        109     110          111                                                                                                 
  457362821,478392018,500938271,536839201,556738291,598372918,620999382,647382019,667382010,683920133,708310999,738291839,756372819,778837261,819382910,837291038,
//      112    113        114           115     116          117        118       119      120          121     122      123          124       125       126      127                                                           
  1000000000,1093729183,1128372919,1273829102,1303928193,13283920193,135869302,142637291,144738291,145637289,149392019,151839201,1553291333,156839201,158382919,160993029,
//    128        129        130      131         132          133      134         135       136          137       138        139        140        141         142       143                                                                                    
  1618392918,1638392819,1657382918,1689392819,1700900300,17100000000,1728393820,1759382910,1783929182,1800392022,1819310393,1827392913,1858392918,1889380130,1918038286,1938028284,
//    144        145       146         147       148         149         150       151      152       153       154        155         156        157      158          159                                                                                         
  1958302882,1978928388,2009380291,2039209288,2048983828,20673802838,2083920788,210989382,212980838,214008000,2147483647,225903988,2500993021,2930993822,3259586666,3693829100,
//    160         161       162        163       164         165         166       167        168         169         170          171        172          173        174                                                                                          
  4193857766,4894827188,5693028188,6839281999,7503929188,79302918383,9603929183,1059837772,12968392005,15382993005,16392159388,18396198382,21325938292,24593203928,26832392012,
 //下面为程序自动生成 385
 30052279053,33358029748,39696055400,43665660940,51962136518,59236835630,66937624261,77647644142,91624220087,106284095300,122226709595,139338448938,160239216278,177865530068,199209393676,227098708790,249808579669,294774124009,338990242610,376279169297,440246628077,488673757165,566861558311,657559407640,762768912862,884811938919,1008685610367,1129727883611,1276592508480,1493613234921,1642974558413,1840131505422,2189756491452,2408732140597,2745954640280,3267686021933,3855869505880,4357132541644,4967131097474,5712200762095,6797518906893,7885121931995,8673634125194,9887942902721,11173375480074,12514180537682,14891874839841,16827818569020,19015434982992,21867750230440,24054525253484,27181613536436,30715223296172,35936811256521,40967964832433,45474440964000,51386118289320,61149480764290,71544892494219,85138422068120,99611953819700,110569268739867,122731888301252,139914352663427,166498079669478,183147887636425,206957113029160,229722395462367,261883530827098,298547225142891,349300253417182,415667301566446,461390704738755,539827124544343,642394278207768,706633706028544,833827773113681,967240216811870,1092981444997413,1256928661747025,1420329387774138,1590768914307034,1877107318882300,2121131270336999,2481723586294289,2903616595964318,3223014421520393,3642006296318044,4079047051876209,4731694580176402,5441448767202862,6094422619267206,7130474464542631,8413959868160304,9423635052339540,11025653011237262,12679500962922852,15088606145878194,16899238883383578,19772109493558788,22540204822657020,26146637594282144,30330099609367288,33666410566397688,37033051623037456,42588009366493072,49827970958796896,57302166602616432,65897491593008896,74464165500100048,84144507015113056,95083292927077760,110296619795410208,125738146566767632,139569342689112064,157713357238696640,187678895114048992,213953940430015840,254605189111718848,295342019369593856,336689902081336960,370358892289470656,429616315055785984,506947251765827456,562711449460068480,669626624857481472,770070618586103680,847077680444713984,948727002098079616,1110010592454753152,1243211863549323520,1404829405810735616,1431086375945250560,1446971027840490240,1494018951557873152,1518714164038880000,1592428131188393984,1630900628817673728,1810299697987617792,1824965224029160192,1877743262415855616,1974937311041138432,2007712974518568192,2104325350214072320,2277593219013369088,2389212896748011520,2402552078753502208,2442051050667406336,2526209225503725568,2644886891827077120,2752031650881759744,2925328324759292928,3082952541741774848,3114801490694014464,3272962213933260800,3448520616728823808,3562378621596667904,3614580665056815104,3715541270040010240,3829626753671020544,3881950815100641792,4066119147758477312,4100812022884206080,4264982704384962048,4393977614875269632,4552320047186110976,4729663571374253056,4748539979845751808,4817922013471148032,4978958553478782976,5037722159087005696,5105887941592544256,5153669446809650176,5158992743549910016,5216864161138915328,5313692663972759552,5476127048895844352,5614437613770797056,5790912181349713920,5874510199086896128,6009584831237059584,6108877048861882368,6286137713971544064,6369582544521513984,6402682722514263040,6504774754431067136,6666897655207197696,6846854075068702720,6883076441892843520,6971175851971602432,7024803267562148864,7173881272107077632,7225138449090473984,7346607341013281792,7490330458986493952,7651300351116490752,7800145196587322368,7863362331652847616,8014695660294729728,8134268892447566848,8247604581892128768,8334495277132959744,8394519971509001216,8462948123097688064,8525747737633649664,8598595290495365120,8756588869792719872,8788140778443200512,8902971217834443776,8934328782589128704,9084111032814346240, 
};
int much[200]=//商品卖出价钱 
{
	0,0,0,0,0,0,0,0,0,0,
	15,100,100,60,3000,
};
int mu[200]=//商品买入价钱 
{
	0,0,0,0,0,0,0,0,0,0,0, 
	50,200,200,100,10000,
};
struct Pet//宠物结构体 
{
	string name;//宠物名称 
	string LX;//宠物名称(cat/dog) 
	int hp;//血量 
	int attack;//攻击 
	int run;//防御 
};
struct people
{
	string name;
	int hp,attack,defence;
	int gang;//所属组织 
};
struct Gang
{
	string name;//名称 
	int pnum;//↑50 
	people peo[50];//各人信息 
	int leader;//首领 
}gang[50];
Pet pet[50];//定义50只宠物 
string name;//玩家名称 
int sudu=80;//字出现速度
int week;//星期几 
string gangth;//帮派日志 
/*
 0 = 黑色       8 = 灰色
    1 = 蓝色       9 = 淡蓝色
    2 = 绿色       A = 淡绿色
    3 = 浅绿色     B = 淡浅绿色
    4 = 红色       C = 淡红色
    5 = 紫色       D = 淡紫色
    6 = 黄色       E = 淡黄色
    7 = 白色       F = 亮白色*/

enum Colour{black,blue,green,palegreen,red,purple,yellow,white,gray,light_blue,light_palegreen,light_red,light_purple,light_yellow,light_white};//注:有些是词生造出来的,可能与实际不符,仅供参数使用,切勿实际使用,否则后果自负
const Colour Const[16]={black,blue,green,palegreen,red,purple,yellow,white,gray,light_blue,light_palegreen,light_red,light_purple,light_yellow,light_white};

//函数声明

/*********存档函数*********/ 
void w1();
void w2();
void w3();
void w4();
void w5();//一堆输出点
void w6();
void w7();
void w8();
void w9(); 
void r1();
void r2();
void r3();
void r4();
void r5();//一堆读入点 
void mrf();//save.txt的读取 
void mwf();//save.txt的存档 
void Write_File();//负责调用子存档函数 
void Read_File();//负责调用子读取函数 

/*********剧情函数*********/ 
void show();//开头剧情 

/*********游戏页面函数*********/ 
void mainmenu();//主页面 
void game();//第一章小学时代 
void home();//家 
void school();//学校 
void shop();//超市 
void park();//公园 
void carnie();//游乐场 
float kaoshi();//考试 
void about();//关于游戏 
void Die();//死亡判定 
void Mid_School();//第三章中学时代 
void Birthday(); //生日
void Duchang();//赌场 
void Bank();//银行 
void Bookstore();//书店
void chengjiu();//查看成就
void City();//市中心
bool dalie();//打猎
int dazi();//打字游戏
void delp();//帮助(神界)
void Divinity();//神界
/*贪吃蛇部分省略*/
int Exa();//高考
void forest();//小森林
void Getmap();//输出异界地图
void hdcj(int i);//获得成就
void Hell();//地狱
void help();//帮助(地狱)
void hole();//星墓(地狱)
void Jingji();//竞技场
void market();//人力市场
int pingjia();//评价游戏
void poem();//结尾
int psss();//石头剪刀布 
int quest();//小升初
bool saolei();//扫雷游戏
void shuoming();//游戏说明
void Soc();//第五章进入社会
void use(int n);//功能使用(标记) 
int WAR();//星墓之战 
void War();//第六章决斗 
void welcome();//欢迎界面
bool zhandou(int m);//竞技场之战 

/*********核心功能函数*********/ 
bool baohu(); //未成年保护模式 
void jdt(int n);//进度条 
void gotoxy(int y,int x);//移动光标 
void coutwhat(int a,int b,int c,int d,string n);//输出something 
void setcolor(Colour x,Colour y);
void color(int x);//调节颜色 
int random(int n,int m);//产生随机数 
void Sout(string n);//减缓输出速度并输出 
void cls();//清屏system("cls")的简写 
void hidden();//清除光标 
void clear();//清屏的快捷版 
void g();//_getch()的简写 
void gs(); //_getch()并且cls() 
int gongji(int attack);//攻击返回数值 
void tepan();//特殊判定 
void sheng();//升级 
void init();//全局初始化 
char* randstr(int n,int m);//生成随机字符串 

/**********帮派部分**********/
void join(int x,int y,people imft);
void dead(int x,int y);
people born(int x); 







long long min(long long x,long long y)
{
	return x<y?x:y;
}
long long max(long long x,long long y)
{
	return x>y?x:y;
} 
void coutwhat(int a,int b,int c,int d,string n)//输出一些东西,从坐标(a,b)到(c,d)输出n 
{
	int i,j;
	for(i=a;i<=c;i++)
	 {
	  gotoxy(i,b);
	  for(j=b;j<=d;j++)
	    {
	    	cout<<n;
		}
	 }
}
void gotoxy(int y,int x) //移动光标 
{
	Write_File();
    COORD  coord;     
    coord.X=x;         
    coord.Y=y;
    HANDLE a=GetStdHandle(STD_OUTPUT_HANDLE);
    SetConsoleCursorPosition(a,coord);    
}
void setcolor(Colour x,Colour y)
{
	int i,j;
	for(i=0;i<16;i++)
	  if (x==Const[i])
	    break;
	for(j=0;j<16;j++)
	  if (y==Const[j])
	    break;
	color(i+y*16);
}
void color(int x)//调颜色 
{
//	Write_File();//随时存档 
	int typeface=x/16,background=x%16; 
	char command_typeface[2],command_background[2];
	string command="color ";
	string change="0123456789abcdef";
	command=command+change[typeface]+change[background];
	char cmd[9];
	for(int i=0;i<9;i++)
	  cmd[i]=command[i];
	system(cmd);
}
int random(int n,int m)//产生一个随机数n~m 
{
	return rand()%(m-n+1)+n; 
}
void Sout(string n)//减速输出,挺有用的 
{
	for(int i=0;i<n.size();i++)
	  {
	  	cout<<n[i];
	  	Sleep(sudu);
	  	if (kbhit())
	  	  if (getch()=='\n')
		    {
		  	  cout<<n.substr(i+1,n.size()-i);
		  	  return;
		    }
	  }
}
void cls()
{
	system("cls");
}

void hidden()
{
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO CursorInfo;GetConsoleCursorInfo(handle, &CursorInfo);
CursorInfo.bVisible = false;
SetConsoleCursorInfo(handle, &CursorInfo);
}
void g()
{
	_getch();
} 
void gs()
{
	hidden();
	gotoxy(45,80);
	cout<<"按下任意键继续_";
	_getch();
	system("cls");
}
void jdt(int n)//进度条 
{
	Write_File();
	if (things[80]==32768)
	  return;
	if (n<=0)
	  n=1;
	time_t t1,t2;
	time(&t1);
	system("cls");
	int i,j=0,k=n;
	gotoxy(0,0);
	cout<<"Loading...\n";
	cout<<"剩余时间:       s";
	for(i=1;i<=100;i++)
	  {
	  	gotoxy(2,i);
	  	cout<<'-';
	  	gotoxy(5,i);
	  	cout<<'-';
	  }
	gotoxy(3,101);
	cout<<"|";
	gotoxy(4,101);
	cout<<"|";
	gotoxy(3,0);
	cout<<"|\n|";
	for(i=1;i<100;i++)
	  {
	  	gotoxy(1,30);
	  	cout<<i<<'%';
	  	gotoxy(1,12);
	  	cout<<n<<' ';
	  	gotoxy(2,i);
	  	cout<<"-";
	  	gotoxy(3,i);
	  	cout<<"#";
	  	gotoxy(4,i);
	  	cout<<"#";
	  	gotoxy(5,i);
	  	cout<<"-";
	  	gotoxy(3,i+1);
	  	cout<<"|";
	  	gotoxy(4,i+1);
	  	cout<<"|";
	  	Sleep(float(k/100.0)*60);
	  	time(&t2);
	  	if (t2-t1>=1)
	  	  {
	  	  	n--;
	  	  	time(&t1);
		  }
	  }
	cls();
} 
Time gottime()//获取当前时间 
{
	Time TIME;
	time_t now=time(0);
	tm*ltm=localtime(&now);
	TIME.year=1900+ltm->tm_year;
	TIME.month=1+ltm->tm_mon;
	TIME.day=ltm->tm_mday;
	TIME.hour=ltm->tm_hour;
	TIME.minute=ltm->tm_min;
	TIME.second=ltm->tm_sec;
	return TIME;
} 
Time Exit,now;
bool judge_num(string num)
{
	int i,k=0;
	int xs[18]={7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2};
	char x[11]={'1','0','X','9','8','7','6','5','4','3','2'};
	for(i=0;i<17;i++)
	  k+=(num[i]-'0')*xs[i];
	k%=11;
	return (x[k]==num[17]);
}
void namek()//实名注册系统 
{
	cls();
	printf("根据国家要求,你需要经过实名注册才能创建该存档!\n");
	printf("请输入姓名:");
	string num;
	cin>>num;
	do
	  {
		printf("请输入身份证号码:");
		cin>>num;
		things[199]=judge_num(num);
		if (things[199]==0)
		  printf("输入有误,请重新输入!\n");
	  }
	while(things[199]==0);
	int y,m,d;
	y=(num[7]-'0')*1000+(num[8]-'0')*100+(num[9]-'0')*10+(num[10]-'0');
	m=(num[11]-'0')*10+(num[12]-'0');
	d=(num[13]-'0')*10+(num[14]-'0');
	Time now=gottime();
	me.y=y;
	me.m=m;
	me.d=d;
	me.age=(now.year-me.y)+(now.month>me.m||now.month==me.m&&now.day>me.d);
	things[199]=(me.age>=18);
} 
int getwday()
{
	int y,m,d;
	const int monthS[2][13]=
	{
	{0,31,28,31,30,31,30,31,31,30,31,30,31},
	{0,31,29,31,30,31,30,31,31,30,31,30,31},
	};
	int i;
	scanf("%d%d%d",&y,&m,&d);
	//以2021.09.01星期三开始算起
	int y1,m1,d1;
	for(y1=2021;y1<=y;y1++) 
	  for(m1=9;m1<=m||y1<y&&m1<=12;m1++)
	   {
	   	  printf("%d.%d has %d days\n",y1,m1,y1==y&&m1==m?d:monthS[y1%400==0||y1%100!=0&&y%4==0][m1]);
	     if (y1==y&&m1==m)
		   i+=d;
		 else
		   i+=monthS[y1%400==0||y1%100!=0&&y%4==0][m1];
	   }
	return (i+1)%7+1;
} 
bool baohu()
{
	if (things[199]==1||things[35]==1)
	  return 0;
	Time jk=gottime();
	int m=jk.hour;
	if (m<=8||m>=22)
	{
	  cout<<"你好,根据国家政策,保护模式限定8点~22点才能登录游戏,请退出!\n";
	  gotoxy(45,80);
	  cout<<"按下任意键继续_";
	  char l=_getch();
	  if (l=='\\')
	    {
	    	cout<<"你居然按对了,那么输入密码吧:";
	    	string mima;
	    	cin>>mima;
	    	if (mima=="Minecraft_MC_YH")
	    	  return 0;
	    	else
	    	  cout<<"密码错了,退出吧~";
		}
	  if (m<=7)
	  cout<<"现在才"<<m<<"点呢!";
		if (m>=22)
		cout<<"都"<<m<<"点了,洗洗睡吧!";
	  return 1;
	}
	return 0;
}
bool friends[40];
bool renwu[20];
int xiaoguo[100][10]=//商店给自身带来的效果(xg[i][j],i表示第i个物品,j表示things[j]的加成) 
{
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,
	0,5,10,10,5,0,0,0,0,0,
	0,5,20,25,1,0,0,0,0,0,
	0,5,5,1,30,0,0,0,0,0,
	0,50,0,0,0,0,0,0,0,0,
	0,30,0,0,0,30,0,0,0,0,
};
time_t start,end;
string goodname[300]=//旧版的名字库,等随机起名完善后再删掉 
{
	"耶,","DA",
	"fda","DFADE,","DEA",
	"DAE","CKA","PEQWI","FDOAKEL",
	"OIASHDDE","SAOJVISD","IEFW",
	"UHJTR","WU","YUJ","TGRV","TRHY",
	"UBH","WETU","WDU","WDQCU56","HU54","5HU4",
	"5HUJ4","TY","G4T5","GT5R","TGE","H6","B4T","EGTB",
	"ETBG","TEBG","5UJ7Y","RSE","TG53","B4Y5NU","ECFRHYNJUMK",
	"FRVGTBHY","FRGTHY","DEFCRGT","FRGVT","FRG","FRGTY","UYTGR","TY",
	"JHG","T4HB","UI5","B%39201","YD1930sS","HY46","JU5NY","暴o十安妮","McyH","DE",
	"CEAD","FEDAOD","FEAD","HKDFS","HTR","RGFW","GRE","TRGE","HYGTRE","uj6HYGTRE", 
};
string filename[10]={"空存档","空存档","空存档","空存档","空存档","空存档","空存档","空存档","空存档","空存档"};//存档名,如果没有改变则为“空存档” 
string nn[4]={"物品","装备","矿物","其它"};//物品类型 
int leibie[201]={0,0,0,0,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,3,3};
string fumoname[4][5]=//附魔名称 
{
	{"耐久","锋利","抢夺","雷电之力","落雷术"},
	{"耐久","效率","洪荒之力","木之克星","时运"},
	{"耐久","效率","急迫","精准采集","时运"},
	{"耐久","保护","血量提升","荆棘","雷电附身"},
}; 
int has_fumo[4][5]={0};//装备附魔情况 
int playthis;//玩游戏时间(还在完善) 


















string happened;//日记 
void hdcj(int i)//完成某个成就,i为成就编号 
{
	use(1);
	if (things[i+99])//如果已经完成就不重复了 
	  return;
	things[195]++;
	gotoxy(48,0);
	if (i<=50)
	  printf("%s获得了成就:【%s】",name.c_str(),cj[i].c_str());
	if (i>50)
	  printf("%s获得了隐藏成就:【%s】",name.c_str(),cj[i].c_str());
	printf("  %s",what_do[i].c_str());
	things[i+99]=1;
	if (i<=50)
	  happened+=(name+"获得了成就【"+cj[i]+"】/"); 
	if (i>50)
	  happened+=(name+"获得了隐藏成就【"+cj[i]+"】/"); 
	Write_File();//这么重大的事肯定得存档啊 
	Sleep(3000);
} 
void chengjiu()//查看成就 
{
	use(2);
	gs();
	int i,j,k,n,m;
	char l;
	i=1;
	bool flag=true;
	cout<<"按a查看上一个,按d查看下一个,按e退出\n";//采用ad翻页式 
	while(flag)
	  {
	  	l=_getch();
	  	cls();
	  	switch(l)
	  	  {
	  	  	case 'a':if (i>1)i--;break;
	  	  	case 'd':if (i<=cjnum)i++;break;
	  	  	case 'e':flag=false;break;
		  }
		gotoxy(3,0);
		if (i<=50||things[100+i-1])//这个需要特判一下 
		  printf("%d.[%s]\n",i,cj[i].c_str());
		else//如果是未完成的隐藏成就 
		  printf("%d.[隐藏成就]\n",i);
		if (things[i+99])
		  {
		  cout<<"(已完成)";
		  }
		else
		 {
		  cout<<"(未完成)";
		}
		if (i==5)
		  cout<<"完成进度:"<<things[189]<<'/'<<27; 
		if (i==49)
		  cout<<"完成进度:"<<things[84]<<'/'<<74;//某些成就需要给点进展提示 
		gotoxy(6,0);
		if (i<=50||things[100+i-1])
		  cout<<what_do[i];
		gotoxy(0,0);
		cout<<"按a查看上一个,按d查看下一个,按e退出\n";
	  }
}
int pingjia()//评价游戏 
{
	use(3);
	int star=0;
	bool lda=true;
	while(lda)
	  {
	  	int i;
	  	gotoxy(2,0);
	  	char nm;
	  	nm=_getch();
	  	for(i=1;i<=5-star;i++)
	  	  cout<<"★";
	  	for(;i<=5;i++)
	  	  cout<<"☆";
	  	gotoxy(3,0);
	  	cout<<"你给了"<<5-star<<"星";
	  	switch(nm)
	  	{
	  		case 'a':star++;break;
	  		case 'd':star--;break;
	  		case 'k':lda=false;break;
		}
		if (star<=0)
		  star=0;
		if (star>=5)
		  star=5;
	   } 
	   star=5-star; 
	if (star==0||star==1)
	  MessageBox(NULL,TEXT("你个没良心的,信不信我删你存档"),TEXT("诅咒"),0);
	if (star==2||star==3)
	  MessageBox(NULL,TEXT("建议给作者提点建议,以上是我的QQ号"),TEXT("3491576605"),0);
	if (star==4)
	  MessageBox(NULL,TEXT("就差一分就满星了,干嘛不给了呢?"),TEXT("。"),0);
	if (star==5)
	  MessageBox(NULL,TEXT("谢谢支持!"),TEXT("感谢"),0);
	if (star==0)
	  Sout("MCYH:******(口吐芬芳)"),system("shutdown -H");//恶作剧 
	return star;
} 
void welcome()//欢迎界面(水) 
{
	hidden();
	setcolor(blue,light_white);
	gotoxy(20,40);
	cout<<"人  生  之  路";
	gotoxy(21,40);
	cout<<"ren sheng zhi lu";
	Sleep(2000);
	cls();
	gotoxy(20,40);
	cout<<"GCZXXXBCD";
	Sleep(200);
	gotoxy(21,40);
	Sout("    MCYH");
	Sleep(1000);
	setcolor(blue,light_white);
	int i,j,k;
	for(k=1;i<=10;k++)
	{
	for(i=1;i<=47;i++)
	  for(j=1;j<=110;j++)
	    {
	    	gotoxy(i,j);
	    	cout<<char(random(2,120));//装模做样一下 
		}
	Sleep(90);
	}
	cls();
	gotoxy(20,45);
	cout<<"MCYH出品,必是精品!\n";
	Sleep(2000);
	cls();
	setcolor(blue,light_white);
	hidden();
	i=0,j=0;
	while(i<=800&&j<=1500)
	  {
	  	i+=random(4,8)*10;
	  	j+=random(8,16)*10;
	  	gotoxy(0,0);
	  	cout<<"解析文件"<<i<<" of "<<j;//装模做样一下 
	  	Sleep(random(50,180));
	  }
	gotoxy(0,60);
	cout<<"\t\t\t\t\t\tv1.20.01.329585"; 
	gotoxy(0,0);
	printf("    WELCOME            \n");
	printf("------------------------------------\n");
	printf("|                                  |\n");
	printf("|                                  |\n");
	printf("|                                  |\n");
	printf("|                                  |\n");
	printf("|                                  |\n");
	printf("|                                  |\n");
	printf("|                                  |\n");
	printf("|                                  |\n");
	printf("|__________________________________|\n");
	gotoxy(2,2);
	hidden();
	Sout("欢迎来到《人生之路》");
	gotoxy(3,2);
	Sout("作者:MCYH\n");
	gotoxy(4,2);
	Sout("祝你游戏愉快\n");
	gotoxy(5,2);
	Sout("(*^_^*)\n");
	gs();
}
void Birthday()//庆生 
{
	use(4);
	cls();
	Sout("mtr:宝贝,生日‘快乐’!\n");
	Sout("ftr:生日‘快乐’!\n");
	things[10]++;
	if (things[10]==12)
	  things[0]++;
	gs();
}
int main()//主函数 
{
	ShellExecute(NULL,"open","cmd.exe /c attrib file1.txt +h",NULL,NULL,SW_SHOWNORMAL);
	mrf();
	cout<<"正在加载...请稍等...";
	int  cx   =   GetSystemMetrics(   SM_CXSCREEN   );   
	int  cy   =   GetSystemMetrics(   SM_CYSCREEN   );  //这些好像没啥用... 
	cout<<"屏幕大小:"<<cx<<"x"<<cy<<"\n"; 
	cout<<"正在调整为全屏模式~Loading...\n";
	system("mode con cols=300 lines=114"); 
	setcolor(light_blue,light_white);
	MessageBox(NULL,TEXT("点击右上角□即可调为全屏~"),TEXT("请调整为全屏模式"),MB_OK);
	MessageBox(NULL,TEXT("根据国家要求,未成年人只能在8点~22点获取游戏服务!"),TEXT("提示"),MB_OK);
	gs();
	srand(time(0));
	welcome();
	gs();
	hidden();
	if (baohu())
	  {
	  	gs();
	  	me.play=clock();
	  }
	cout<<"游戏基本规则:当选项左边出现数字(比如1. 2. 3.之类的)就需要按下序号进行移动,输入时请注意(数值禁止输入字符,否则直接卡退或存档混乱!)\n";
	cout<<"请选择:\n";
	cout<<"1.新建用户(覆盖或新建存档)\n";
	cout<<"2.继续游戏(读取存档)\n";
	char m=_getch();
	if (m=='1')//新建存档 
	  {
	  	namek();
	  	string number[10]={"0","1","2","3","4","5","6","7","8","9"};
	  	cout<<"覆盖哪个存档?\n";
	  	for(int i=1;i<=9;i++)
	  	  cout<<"存档"<<i<<":"<<filename[i]<<'\n';
	  	cin>>things[185];
	  	filename[things[185]]="新存档"+number[things[185]]; 
	  	cout<<"是否改存档名?(当前存档名:"<<filename[things[185]]<<")\n(Y/N)";
		char s;
		cin>>s;
		if (s=='Y')
		  {
		  	cout<<"改成什么?";
		  	cin>>filename[things[185]];
		  } 
		things[192]=1;//已读取,开始运行 
	  	show();//开始剧情 
	  }
	else
	  {
	  	cout<<"读取哪个存档?\n";
	  	for(int i=1;i<=9;i++)
	  	  if (filename[i]!="空存档")
	  	    cout<<"存档"<<i<<":"<<filename[i]<<'\n';
	  	cin>>things[185];
	  	int i=things[185];
	  	Read_File();
	  	things[185]=i;//防止存档被恶意毁坏 

	  	Time now=gottime();
	  	if (now.day!=Exit.day)
	  	  {
	  	  	Exit=gottime();
	  	  	cls();
	  		
		  }
	  	things[192]=1;
	  	jdt(10);
	  	mainmenu();//这是第二主函数,相当于剧情主干 
	  }
	
	return 0;
}
void Die()
{
	use(4);
	cls();
	sudu=500;
	setcolor(light_white,red);
	color(7);
	Sout("你	死	了	!\n");
	cout<<"┏┛墓┗┓...(((m -__-)m";
	things[190]++;
	sudu=100;
	if (things[187]==3)
	  hdcj(60);
	if (things[31])//emo沙漏 
	  {
	  	gs();
	  	gotoxy(15,50);
	  	cout<<"_____\n";
	  	gotoxy(16,50);
	  	cout<<" \\|/\n";
	  	gotoxy(17,50);
	  	cout<<" /|\\\n";
	  	gotoxy(18,50);
	  	cout<<"-----\n";
	  	Sleep(2000);
	  	gotoxy(40,35);
	  	cout<<name<<"使用了技能【时间回溯】将时间回溯至1分钟前,但是灵魂被恶魔沙漏反噬,仅剩150滴血";
	  	use(5);
	  	hdcj(42);
	  	happened+=(name+"死亡后复活了!/");
	  	things[31]--;
	  	things[2]=150;
	  	gs();
	  	return;
	   } 
	if (things[21]==4)//炼狱模式,删除存档(将22设为150后永远无法读取存档) 
	  	things[22]=150,Write_File(); 
	if (things[21]==3)//困难模式 
	  {
	  	cout<<"(你丢失了所有东西(精力,水分,饥饿。水分,攻击,血量,防御,成就除外)";
	  	for(int i=1;i<81;i++)
	  	if (i!=21&&i!=10)
	  	  things[i]=1;
	  	for(int i=0;i<100;i++)
	  	  fost[i]=0;
	  	things[3]=things[4]=100;
	  	things[8]=100;
	  	things[2]=100;
	  	things[5]=50;
	  	things[6]=20;
	  	things[30]=360;
	  }
	if (things[21]==2)//普通模式 
	  {
	  	cout<<"你的钱全丢了!";
	  	things[7]=0;
	  }
	if (things[21]==1)//简单模式 
	  cout<<"真幸运,什么都没丢";
	gs();
	cout<<"血量恢复至250,按1键继续,按e关机,或按其他退出";
	things[2]=250;
	Write_File(); 
	char l=_getch();
	if (l=='e')
	  system("Shutdown -H");// :)
	if (l!='1') 
	  me.play+=clock(),exit(0);
}
void mrf()//储存存档名称的存档 
{
	ifstream fin("save.MCYH");
	for(int i=1;i<=9;i++)
	  fin>>filename[i];
	fin.close();
}
void mwf()
{
	ofstream fout("save.MCYH");
	for(int i=1;i<=9;i++)
	  fout<<filename[i]<<'\n';
	fout.close();
}
void w1()
{
	ofstream fout("file1.a");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void w2()
{
	ofstream fout("file2.b");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void w3()
{
	ofstream fout("file3.c++");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void w4()
{
	ofstream fout("file4.d");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void w5()
{
	ofstream fout("file5.e");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void w6()
{
	ofstream fout("file6.f");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void w7()
{
	ofstream fout("file7.gxc");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void w8()
{
	ofstream fout("file8.hec");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void w9()
{
	ofstream fout("file9.init");
	use(6);
	fout<<name<<endl;
	for(int i=0;i<2000;i++)
	  fout<<things[i]<<' ';
	fout<<sudu<<'\n';
	for(int i=0;i<40;i++)
	  fout<<friends[i]<<' ';
	fout<<endl;
	for(int i=0;i<40;i++)
	  fout<<student[i]<<' ';
	for(int i=0;i<20;i++)
	  fout<<renwu[i]<<' ';
	fout<<endl;
	for(int i=0;i<200;i++)
	  fout<<fost[i]<<' ';
	fout<<endl<<start<<endl;
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fout<<has_fumo[i][j]<<' '; 
	fout<<endl<<kaishi<<endl;
	fout<<happened<<endl;
	for(int i=0;i<200;i++)
	  fout<<gn[i]<<' ';
	for(int i=0;i<50;i++)
	  fout<<pet[i].name<<' '<<pet[i].LX<<' '<<pet[i].attack<<' '<<pet[i].hp<<' '<<pet[i].run<<'\n';
	fout<<gotmoney<<'\n';
	fout<<me.y<<' '<<me.m<<' '<<me.d<<' '<<me.play<<' '<<me.age<<' '<<me.gang<<'\n';
	fout<<Exit.year<<' '<<Exit.month<<' '<<Exit.day<<' '<<Exit.hour<<' '<<Exit.minute<<' '<<Exit.second<<'\n';
	for(int i=1;i<31;i++)
	  {
	  	fout<<gang[i].pnum<<' '<<gang[i].name<<'\n';
	  	for(int j=1;j<50;j++)
	  	  fout<<gang[i].peo[j].name<<' '<<gang[i].peo[j].hp<<' '<<gang[i].peo[j].attack<<' '<<gang[i].peo[j].defence<<' '<<gang[i].peo[j].gang<<'\n';
		fout<<gang[i].leader<<'\n';
	  }
	fout<<gangth<<endl;
	fout.close();
}
void Write_File()
{
	Exit=gottime();
	if (things[192]==0)
	  return;
	switch(things[185])
	  { 
	  	case 1:w1();break;
	  	case 2:w2();break;
	  	case 3:w3();break;
	  	case 4:w4();break;
	  	case 5:w5();break;
	  	case 6:w6();break;
	  	case 7:w7();break;
	  	case 8:w8();break;
	  	case 9:w9();break;
	  	default:cout<<things[185]<<"[error] 404";Sleep(5000);me.play+=clock(),exit(0);
	  }
}
void r1()
{
	ifstream fin("file1.a");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<200;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void r2()
{
	ifstream fin("file2.b");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<2000;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void r3()
{
	ifstream fin("file3.c++");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<2000;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void r4()
{
	ifstream fin("file4.d");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<200;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void r5()
{
	ifstream fin("file5.e");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<200;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void r6()
{
	ifstream fin("file6.f");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<200;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void r7()
{
	ifstream fin("file7.gxc");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<200;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void r8()
{
	ifstream fin("file8.hec");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<200;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void r9()
{
	ifstream fin("file9.init");
	fin>>name;
	for(int i=0;i<2000;i++)
	  fin>>things[i];
	fin>>sudu;
	for(int i=0;i<40;i++)
	  fin>>friends[i];
	for(int i=0;i<40;i++)
	  fin>>student[i];
	for(int i=0;i<20;i++)
	  fin>>renwu[i];
	for(int i=0;i<200;i++)
	  fin>>fost[i];
	long long temp;
	fin>>temp;
	if (temp!=0) 
	  start=temp;
	else
	  {
	  	time_t guodu;
	  	time(&guodu);
	  	start=guodu;
	  }
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    fin>>has_fumo[i][j];
	fin>>kaishi;
	fin>>happened;
	for(int i=0;i<200;i++)
	  fin>>gn[i];
	for(int i=0;i<50;i++)
	  fin>>pet[i].name>>pet[i].LX>>pet[i].attack>>pet[i].hp>>pet[i].run;
	fin>>gotmoney;
	fin>>me.y>>me.m>>me.d>>me.play>>me.age>>me.gang;
	fin>>Exit.year>>Exit.month>>Exit.day>>Exit.hour>>Exit.minute>>Exit.second;
	for(int i=1;i<31;i++)
	  {
	  	fin>>gang[i].pnum>>gang[i].name;
	  	for(int j=1;j<50;j++)
	  	  fin>>gang[i].peo[j].name>>gang[i].peo[j].hp>>gang[i].peo[j].attack>>gang[i].peo[j].defence>>gang[i].peo[j].gang;
		fin>>gang[i].leader;
	  }
	fin>>gangth;
	fin.close();
}
void Read_File()
{
	switch(things[185])
	  {
	  	case 1:r1();break;
	  	case 2:r2();break;
	  	case 3:r3();break;
	  	case 4:r4();break;
	  	case 5:r5();break;
	  	case 6:r6();break;
	  	case 7:r7();break;
	  	case 8:r8();break;
	  	case 9:r9();break;
	  	default:cout<<"[error] 找不到存档";Sleep(5000);me.play+=clock();exit(0);
	  }
	if (things[34]!=12001)//1.20的更新,更新旧版本不兼容的存档 
	  {
	  	for(int i=1;i<30;i++)
	  {
	  	gang[i].pnum=random(2,40);
	  	gang[i].name=randstr(5,21);
	  	for(int j=1;j<=gang[i].pnum;j++)
	  	  {
	  	  	gang[i].peo[j]=born(i);
		  }
		gang[i].leader=random(1,gang[i].pnum);
	  }
	  things[34]=12001,things[117]=0,things[127]=0;
	  Write_File(); 
	  }
}
void about()
{
	cls();
	use(7);
	Sout("游戏作者:沉迷学习的MCYH\n\n");
	Sout("游戏版本:v1.20.01.334778\n\n");
	Sout("作者QQ:3491576605\n\n");
	Sout("祝你玩得愉快!\n\n");
	Sout("按任意键返回\n\n");
	gs();
	return;
}
void shuoming()
{
	;//废 
}
char* randstr(int n,int m)//随机字符串 
{
	int i,j;
	char abc[50];
	for(i=0;i<random(n,m);i++)
	  abc[i]=rand()%4?random('a','z'):random('A','Z');
	return abc;
}
void show()
{
	things[270]=0;
	shuoming();
	time_t ld;
	time(&ld);
	kaishi=ld;
	cout<<"当前时间刻:"<<kaishi;
	gs();
	Write_File(); 
	string sm="";
	things[30]=720; 
	srand(time(0));
	memset(friends,0,sizeof(friends));
	things[19]=rand()%40;
	color(6);
	gs();
	srand(time(0));
	for(int i=0;i<40;i++)
	  {
	  	student[i]=studentname[i];
	  }
	string sn;
	memset(gn,false,sizeof(gn));
	cout<<"enter your name↙:__________(输入.加enter自动起名)";
	gotoxy(0,20);
	cin>>sn;
	happened+=(sn+"出生了/");
	int m;
	if (sn==".")
	  {
	  	char a,b,c;
	  	do
	  	  {
	  	  sn=randstr(3,12);
		  gotoxy(6,20);
		  printf("Your name:%s            ",sn.c_str());
		  gotoxy(7,20);
		  cout<<"按h重新起名,其他退出";
		  a=_getch();
		  }
		while(a=='h');
	  }
	student[things[19]]=sn;
	name=sn;
	cout<<"请选择游戏难度:\n";
	cout<<"1.简单模式(非常简单,死了什么都不会丢,适合新手)\n";
	cout<<"2.中等模式(运气比较差,怪物比较强(包括你同学),死亡后会丢失所有金钱,适合第二次玩的同学)\n";
	cout<<"3.困难模式(运气特别差,怪物特别强(包括你同学),死亡后会丢失所有东西,重置你的等级和血量,章节进度和挂机收益不会改变,适合玩过4次以上的老玩家))\n";
	cout<<"4.炼狱模式(运气极差,怪物极强(包括你同学),死亡后存档会丢失,适合勇敢的挑战者(大师))\n";
	cin>>things[21];
	student[things[19]]=name;
	if ((name[0]=='M'||name[0]=='m')&&(name[1]=='C'||name[1]=='c')&&(name[2]=='Y'||name[2]=='y')&&(name[3]=='H'||name[3]=='h')||name=="MC夜丶痕"||name=="zjl"||name=="夜丶痕"||name=="作者"||name=="我是作者")
	  {
	  	Sout("嘿,伙计!你不能用这个名字!这是作者的名字,按0键退出游戏!(你敢按其他键吗?)");
	  	char m=_getch();
	  	if (m=='0')
	  	  me.play+=clock(),exit(0);
	  	cls();
	  	Sout("调皮,接受诅咒吧!");
	  	MessageBox(NULL,TEXT("吗尼吗尼哄!"),TEXT("关机咒"),0);//...
	  	system("shutdown -H");
	  	while(1)//这两行代码, 
	  	  Sleep(100);//永远也不会运行 
	  }
	hdcj(1);
	cls();
	sudu=15;
	//无聊的剧情 
	Sout("人生就是一条路,但它不是一条平坦的路。");
	gs();
	Sout("你叫"+name+",是一个学生。");
	gs();
	Sout("你以为自己很聪明,但是实际上。。。");
	gs();
	Sout("你就是个学灰。你经常逃课去网吧,有一次...");
	gs();
	Sout("你又习惯性的打开了http:www.4399.com/的网页。");
	gs(); 
	int nn=0;
	while(MessageBox(NULL,TEXT("你认为自己是一个很有才能的人吗?"),TEXT("未知错误!"),MB_YESNO)==IDNO)
	  {
	  	cls();
	  cout<<"调皮,别闹!"; 
	  nn++;
	  }
	if (nn>=4)
	  hdcj(4);
	while(MessageBox(NULL,TEXT("如果给你一个机会,你愿意让这一切重新开始吗?"),TEXT("未知错误!"),MB_YESNO)==IDNO)
	  {
	  	nn++;
	  	cls();
	  	cout<<"调皮,别闹!";
	  }
	if (nn>=4)
	  hdcj(54);
	cls();
	Sout("那好,马上就带你回去。。。\n");
	gs();
	Sout("是否跳过开头剧情及引导帮助?Y/N");
	char l=_getch(); 
	if (l!='y'&&l!='Y')
	{
	sudu=10;
	gotoxy(48,0);
	hdcj(1);
	cls();
	gotoxy(0,0); 
	Sout("随着一声啼哭,你不小心降临到这个吵吵嚷嚷的世界上");
	gs();
	Sout("Ftr:嗯。。。给孩子起个什么名字呢?\n");
	Sout("mtr:就叫");
	Sout(name);
	Sout("吧.\n"); 
	gs();
	Sout("Ftr:是个好名字。\n");
	gs();
	Sout("MCYH:在这个竞争激烈的社会上,没有本事的人只能被淘汰掉。\n");
	gs();
	Sout("MCYH:‘朋友’,让我告诉你游戏怎么玩");
	gs();
	Sout("MCYH:你要学会怎么和我们说话,按下任意键就可以了。。。");
	gs();
	Sout("MCYH:嗯。。。学的真快");
	gs();
	Sout("MCYH:那么开始吧");
	gs();
	Sout("MCYH:在游戏中,你有很多属性,例如name,age,xp,level,hp,water,hungry等等");
	gs();
	Sout("MCYH:你可以通过上学增加XP,或者去商店买一些东西增强自己,当XP达到一定之后会升级,当年龄达到一定后会升学\n");
	gs();
	Sout("MCYH:当你大学毕业之后就可以进入社会,寻找工作,生存下去\n");
	gs();
	Sout("MCYH:在这个异世界里,每隔30天就是一年,只要睡上一觉就能到第二天了。\n");
	gs();
	Sout("MCYH:当然,也有很多奇怪的道具可以帮助你跨越时间或者回溯时间,有些是很好用的道具\n");
	gs();
	Sout("MCYH:嗯。。。开始吧。\n");
	shuoming();
	gs();
	Sout("时光飞逝,转眼你已经上了小学。。。\n");
	gs();}
	//初始化 
	printf("Loading init...");
	things[7]=800;
	things[2]=100;
	things[3]=50;
	things[4]=50;
	things[5]=30;
	things[6]=5;
	things[8]=100;
	things[9]=1;
	things[10]=6;
	things[18]=1;
	things[30]=720;
	things[34]=12001;
	for(int i=1;i<30;i++)
	  {
	  	gang[i].pnum=random(2,40);
	  	gang[i].name=randstr(5,21);
	  	for(int j=1;j<=gang[i].pnum;j++)
	  	  {
	  	  	gang[i].peo[j]=born(i);
		  }
		gang[i].leader=random(1,gang[i].pnum);
	  }
	time_t dl;
	time(&dl);
	start=dl; 
	things[0]=1;
	memset(renwu,0,sizeof(renwu));
	Write_File(); 
	mainmenu();
}
int gongji(int attack)//攻击,采用该方法计算造成伤害 
{
	int i=0,j=1;
	gotoxy(10,0);
	cout<<"按空格攻击\n";
	cout<<"Low                         High                         Low\n";
	cout<<"------------------------------------------------------------\n\n";
	cout<<"------------------------------------------------------------";
	float shang[60]=
	{0.1,0.1,0.1,0.2,0.2,0.2,0.2,0.3,0.3,0.3,0.3,0.5,0.5,0.5,0.6,0.6,0.6,0.7,0.7,0.7,0.7,0.7,0.8,0.8,0.9,0.9,1.0,1.1,1.5,1.1,1.0,0.9,0.9,0.8,0.8,
	 0.7,0.7,0.7,0.7,0.6,0.6,0.6,0.5,0.5,0.5,0.4,0.4,0.4,0.3,0.2,0.2,0.2,0.2,0.1,0.1,0.1,0.6,0.4,0.4,0.1};
	while(1)
	  {
	  	gotoxy(13,i-j);
	  	cout<<"     ";
	  	gotoxy(13,i);
	  	cout<<"|#|";
	  	char m;
	  	if (kbhit())
	  	  {
	  	  	m=getch();
	  	  	if (m==' ')
	  	  	  return attack*(shang[i])+attack*0.3;
			}
	  	i+=j;
	  	if (i>=60)
	  	  j=-j;
	  	if (i<=0)
	  	  j=-j;
	  //	Sleep(1);
	  }
}
long long llgongji(long long attack)//攻击,采用该方法计算造成伤害 
{
	int i=0,j=1;
	gotoxy(10,0);
	cout<<"按空格攻击\n";
	cout<<"Low                         High                         Low\n";
	cout<<"------------------------------------------------------------\n\n";
	cout<<"------------------------------------------------------------";
	float shang[60]=
	{0.1,0.1,0.1,0.2,0.2,0.2,0.2,0.3,0.3,0.3,0.3,0.5,0.5,0.5,0.6,0.6,0.6,0.7,0.7,0.7,0.7,0.7,0.8,0.8,0.9,0.9,1.0,1.1,1.5,1.1,1.0,0.9,0.9,0.8,0.8,
	 0.7,0.7,0.7,0.7,0.6,0.6,0.6,0.5,0.5,0.5,0.4,0.4,0.4,0.3,0.2,0.2,0.2,0.2,0.1,0.1,0.1,0.6,0.4,0.4,0.1};
	while(1)
	  {
	  	gotoxy(13,i-j);
	  	cout<<"     ";
	  	gotoxy(13,i);
	  	cout<<"|#|";
	  	char m;
	  	if (kbhit())
	  	  {
	  	  	m=getch();
	  	  	if (m==' ')
	  	  	  return attack*(shang[i])+attack*0.3;
			}
	  	i+=j;
	  	if (i>=60)
	  	  j=-j;
	  	if (i<=0)
	  	  j=-j;
	  //	Sleep(1);
	  }
}
void tepan()//特殊判断,比如减饥饿值、生病什么的 (此函数格式较乱,强迫症者可以免看) 
{
	things[8]-=random(2,4)*(things[21]);
	things[3]-=random(2,5)*(things[21]-1); 
	things[4]-=random(2,5)*(things[21]-1);
	things[1]+=random(1,5)*(5-things[21]); 
	if (rand()%73==6||random(1,350)>things[2]&&rand()%16==2)
	  {
	  	int rdg=random(7,45),rdf=random(230,1598);
	  	Sout("你生病了");
	  	if (rdg>35)
	  	  Sout(",十分严重,挺住!\n");
	  	printf("(hp-%d money-%d)",rdg,rdf);
	  	things[2]-=rdg,things[7]-=rdf;
	  	if (things[2]<0)
	  	  Die();
	  }
	if (rand()%(3000/things[21])==9)
	  {
	  	int deadway=random(1,10);
		switch(deadway)
		  {
		  	case 1:Sout("你出了车祸,你挂了...\n");break;
		  	case 2:Sout("你重重地摔了一跤,脑部严重损伤,你挂了...\n");break;
		  	case 3:Sout("你得了不治之症,你挂了...\n");break;
		  	case 4:Sout("你掉进水里淹死了...\n");break;
		  	case 5:Sout("你开车时连人带车翻进了水里,你挂了...\n");break;
		  	case 6:Sout("你得了抑郁症,你挂了...\n");break;
			case 7:Sout("你被几个帮派的人谋害了,你挂了...\n");break;
			case 8:Sout("你家着火了,你挂了...\n");break;
			case 9:Sout("你死了...\n");break;//敷衍
			case 10:Sout("参观动物园时掉进老虎笼子,你挂了...\n");break; //离谱 
		  }
		  Sleep(1000);
		  Die();
	  }
	if (happened.length()>=20000)
	  hdcj(54); 
	if (double(gotmoney-things[93]-things[7])>=double(500000000000*1))
	  hdcj(57);
	if (gotmoney>=double(500000000000))
	  hdcj(58);
	if (things[16]>=96*30)
	  hdcj(4);
	int i,m=0,j,k;
	if (rand()%50==6&&gang[me.gang].peo[gang[me.gang].leader].name==name)
	  things[200]++;
	while (rand()%250==7&&me.gang!=0)//中途要Break 
	  {
						  do j=random(1,49); while(j!=me.gang);
						Sout(gang[j].name+"向你发起了帮派战役,是否接受(Y/N)\n");
						char l=_getch();
						if (l=='N'||l=='n')
						  {
						  	gangth+=gang[me.gang].name+"拒绝了"+gang[j].name+"发起的战斗,损失惨重/";
						  	Sout("你没有接受,因此损失了");
						  	int lost=random(2335,50000);
						  	printf("%d",lost);
						  	Sout("元钱\n");
						  	things[7]-=lost;
						  	gs();
						  	break;
						  }
						while(1)
						  {
							cls();
							printf("Num\t\tName\t\tatk\t\thp\t\tdfc\n");
							for(i=1;i<=gang[me.gang].pnum;i++)
						  	  printf("%3d\t\t%s\t\t%d\t\t%d\t\t%d\t\t%d\n",i,gang[me.gang].peo[i].name.c_str(), gang[me.gang].peo[i].attack, gang[me.gang].peo[i].hp, gang[me.gang].peo[i].defence);
							printf("Please choose one to fight with your enemy:(enter -1 to quit)");
							int us,enemy;
							cin>>us;
							if (us==-1)
							  break;
							enemy=random(1,gang[j].pnum);
							cls();
							printf("%s VS %s\n",gang[me.gang].peo[us].name.c_str(),gang[j].peo[enemy].name.c_str());
							people a=gang[me.gang].peo[us];
							people b=gang[j].peo[enemy];
							int round=0;
							while(a.hp>0&&b.hp>0)
							  {
							  	Sout("Round ");
							  	printf("%d\n",++round);
							  	int sh;
							  	sh=max(int(a.attack*random(8,12)/10.0-b.defence*random(8,12)/10.0),1);//打出负数就回血了,所以至少造成1点伤害, 
							  	Sout(a.name);													 //攻击和防御随机取0.8~1.2倍好玩一些 
							  	Sout("发起了攻击,对");
							  	Sout(b.name);
							  	Sout("造成了");
							  	cout<<sh;
							  	Sout("点伤害。\n");//以上这些可以合并 
							  	b.hp-=sh;
							  	sh=max(int(b.attack*random(8,12)/10.0-a.defence*random(8,12)/10.0),1);
							  	Sout(b.name);
							  	Sout("发起了攻击,对");
							  	Sout(a.name);
							  	Sout("造成了");
							  	cout<<sh;
							  	Sout("点伤害。\n");
							  	a.hp-=sh;
							  }
							Sout("战斗结束。");
							gang[me.gang].peo[us]=a;
							gang[j].peo[enemy]=b;
							if (a.hp<=0)
							  {
							  	gangth+=gang[me.gang].peo[us].name+"在帮派战役中被"+gang[j].name+"的"+gang[j].peo[enemy].name+"杀死了/";
							  	printf("失败!%s死亡",a.name.c_str());
							  	dead(me.gang,us);//死后需清除其数据 
							  	if (a.name==name)
							  	  Die();
							  	int lost=random(359932,5083921);
							  	printf("损失%d元",lost);
							  	things[7]-=lost;
							  }
							if (b.hp<=0)
							  {
							  	gangth+=gang[me.gang].peo[us].name+"在帮派战役中杀死了"+gang[j].name+"的"+gang[j].peo[enemy].name+"/";
							  	int got=random(187903,3829183);
							  	printf("胜利!获得%d元",got);
							  	things[7]+=got,gotmoney+=got;
								dead(j,enemy);
							  }
							gs();
							if (gang[me.gang].pnum==0)
							  {
							  	gangth+=gang[me.gang].name+"在帮派战役中被"+gang[j].name+"灭了/";
							  	Sout("你的帮派被灭掉了!\n");
							  	Sleep(1000);
								Sout("你损失了所有钱财!");
								things[7]=0; 
								me.gang=0;
							  }
							if (gang[j].pnum==0)
							  {
							  	gangth+=gang[me.gang].name+"在帮派战役中被灭掉了"+gang[j].name+"/";
							  	Sout(gang[j].name);
							  	Sout("从此覆灭...");
							  	Sleep(1000);
							  	Sout("你获得大量金钱!\n");
							  	int got=random(509835,8898372);
							  	things[7]+=got,gotmoney+=got;
							  	break;
							  }
							}
							break;
	  }
	for(i=1;i<=50;i++)//帮派变化
	  if (i!=me.gang||gang[me.gang].peo[gang[me.gang].leader].name!=name)
	    {
	  	  if (!rand()%4)
	  	    {
	  	    	k=1;
	  	    	j=random(1,3);
	  	    	if (!rand()%4)
	  	    	  k=0;
	  	    	int a[3];
	  	    	if (k)
	  	    	  {
	  	    	  	j=min(50-gang[i].pnum,j);
	  	    	  	for(int ij=1;ij<=j;ij++)
	  	    	  	  {
	  	    	  	  	people newjoy=born(i);
	  	    	  	    join(i,gang[i].pnum,newjoy);
	  	    	  	    gangth+=newjoy.name+"加入了"+gang[i].name+"/";
	  	    	  	  }
	  	    	  	break;
				  }
	  	    	for(int ij=0;ij<j;ij++)
	  	    	  do
	  	    	    a[ij]=random(1,gang[i].pnum);
	  	    	  while(a[ij]==gang[i].leader);
	  	    	if (i==me.gang)
	  	    	  for(int ij=0;ij<j;ij++)
	  	    	    if (gang[me.gang].peo[a[ij]].name==name)
	  	    	      {
	  	    	      	Sout("你被帮主驱逐出了帮派...");
	  	    	      	gs();
					  }
	  	    	for(int ij=0;ij<j;ij++)
	  	    	  {
	  	    	  	gangth+=gang[i].name+"的"+gang[i].peo[a[ij]].name+"被驱逐了/";
	  	    	    dead(i,a[ij]);
	  	    	  }
			}
	    } 
	for(i=100;i<129;i++)
	   m+=(fost[i]==1);
	things[189]=m;
	if (things[189]>=27)
	  hdcj(5);
	if (rand()%56==9)
	switch(things[187])
	  {
	  	case 1:Sout("一道闪电从天上劈了下来,");
	  	if (rand()%2)
	  	  {
	  	  Sout("正好劈到你的脑袋上,你不明不白地去世了。");happened+=(name+"被闪电劈死了");hdcj(51);Die();//惨遭五雷轰顶 
	  	 }
	  	else
	  	  Sout("正好劈在你的面前,差点就命中你了。");
		break;
	  	
	  }
	color(things[186]);
	hidden();
	if (things[7]>=100000)
	  hdcj(7);
	if (things[84]>=70)
	  hdcj(49);
	bool wancheng=true;
	if (things[9]<50)
	  wancheng=false;
	if (wancheng)
	  for(int i=1;i<=49;i++)
	  	if (things[i+99]==false)
	  	  wancheng=false;
	if (wancheng)
	  hdcj(50);
	sheng();
	Write_File();
	mwf(); 
	if (things[2]>=1000)
	  hdcj(18);
	if (baohu())
	  {
	  	gs();
	  	Write_File();
	  	me.play+=clock(),exit(0);
	   } 
	cls();
	if (things[8]<5)//强制睡觉 
	    		  {
	    		  	Sout("你没有精力了,按1强制睡觉");
	    		  	char n;
	    		  	do
	    		  	  {
	    		  	  	n=_getch();
						}
					while(n!='1');
					Sout("一个临时的坏觉,你的精力回了一半(水分-10 饱食度-10)");
					things[8]=50;
					things[3]-=10,things[4]-=10;
					things[16]++;
					things[97]=rand()%400+100;
					things[93]+=things[93]*float(things[97]/100000.0);
					gs();
					things[187]=random(1,10);
					switch(things[187])
					  {
						case 1:Sout("天气预报:今日雷暴天气,不宜出行");break;//详见上方被雷劈 
						case 2:Sout("新闻:小森林传来不明怪叫声,专家称可能是一种叫树妖的生物发出的。树妖是一种由枯死的树木变成的怪物,异常凶猛");break;//确有其事 
						case 3:Sout("娱乐新闻:今日有一算命先生称我市市民"+name+"会事事不顺,该算命先生已被逮捕");break;//没准就成真了 
						case 4:Sout("你的眼前好像出现了一个黑影,你正想仔细看,他却不见了,你发现你还是在睡觉的位置");break;//这个... 
						case 5:Sout("特大新闻,特大新闻:我市银行遭犯罪分子抢劫,损失惨重。据银行人员说他们会尽力减少广大市民们的损失");break;//银行的钱会减少 
						default:Sout("天亮了,又是美好的一天");break;//理想状态 
					  }
					Sleep(3000);
					gs();
				  }
				if (things[3]<=0)
				  {
				  	cout<<"你在挨饿!!!";
				  	things[2]-=20;
				  }
				if (things[4]<=0)
				  {
				  	cout<<"你口干舌燥!!!";
				  	things[2]-=20;
				  }
				if (things[2]<=0)
				  Die();
				if (things[16]>=30)
				  Birthday(),things[16]-=30;
}
//const string where[]={"做作业(+XP)","看书(+XP)","睡觉(回满精力)","冥想(+IQ)","吃饭(+饱食度,+水分)","查看状态","查看背包","存档","设置","返回"}; 
//{"学习(+XP)","考试(+XP,考得好+零花钱,考不好-hp)","查看同学资料","玩耍","交朋友","任务","背包","回家","打架(emmmmm...)"};//5
const char tbh[][15]=//图例 
{
  {' ','#','h','s','S','p','c','e','a','k'},
  {' ','#','w','b','s','t','e','l','B','f','E','r'},
  {' ','#','s','t','l','p','f','T','b','r','w'},
  {' ','#','r','p','c','f','b','t','P','h','d','s'},
  {' ','#','e','s','l','t','g','b'},
  {' ','#','b','w','r','b','f','g'},
  {' ','#','g','s','w','t','l','b','f','b','s','S','m'},
  {' ','#','h','d','m','c','f','s','b','p','e','C'},
};
/*if (things[188]==1)
	      l=choose(3)+'0';*///这是代码模板,用于复制粘贴 
const string jieshi[][15]=//图例解释 
{
  {" ","墙","家","学校","超市","公园","游乐场","保存退出","关于游戏","KILL YOURSELF"},
  {" ","墙","做作业","看书","睡觉","冥想","吃饭","查看状态","查看背包","存档","设置","返回"}, 
  {" ","墙","学习","考试","查看同学资料","玩耍","交朋友","任务","背包","回家","打架(这个...)"},
  {" ","墙","跑步","踢足球","登山","钓鱼","返回","公告","活动中心","给游戏评价","兑换码","查看成就"},
  {" ","墙","贪吃蛇","石头剪刀布","扫雷","打字游戏","2048","返回"},
  {" ","墙","搬砖","抄作业","文字录入","离开","找工作","领取挂机收益"},
  {" ","墙","打猎","砍树","工作台","探索","查看合成表","离开","附魔","森林背包","查看当前附魔属性","看看森林中各物品说明","神秘人"},
  {" ","墙","家","赌场","人力市场","游乐场","小森林","超市","背包","公园","存档并退出","市中心"},
};
const int area[][2]=//范围 
{
	{46,110},
	{10,17},
};


//尽量别看,刺眼 
const int mainmap[][110]=
{
	{1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
	{1,0,0,0,1,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,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]);
	    printf("\n");
	  }
	for(i=25;i<=38;i++)
	  {
	  	gotoxy(i,80);
	    printf("%c - %s\n",tbh[m][i-25],jieshi[m][i-25].c_str());
	  }
	gotoxy(40,80);
	cout<<" Day "<<things[16]+((things[10]-6)*30)<<'\n';
	gotoxy(41,80);
	cout<<"WASD移动,空格确定去此处";
} 
int choose(int m)//图像式专用选择函数 
{
	PrintfMap(m);
	int x,y,i,j,k;
	x=1,y=1;
	char n;
	while(1)
	{
		gotoxy(x,y);
		cout<<"o";
		n=_getch();
		gotoxy(x,y);
		cout<<tbh[m][mainmap[x][y]]; 
		switch(n)
		{
			case 'w':if (x-1>=1&&mainmap[x-1][y]!=1) x--;break;
			case 's':if (x+1<=46&&mainmap[x+1][y]!=1) x++;break;
			case 'a':if (y-1>=1&&mainmap[x][y-1]!=1) y--;break;
			case 'd':if (y+1<=110&&mainmap[x][y+1]!=1) y++;break;
			case ' ':
				if (mainmap[x][y]>=2)
				  return mainmap[x][y]-2;
		 } 
	}
}
void sheng()//升级 
{
	use(8);
	while(things[1]>=sj[things[9]])
	  {
	  	if (things[9]==200)
	  	  {
	  	  	Sout("在不断地悟道后,你明白了自己的本源道,知道了你是谁,从哪里来,到哪里去。(P H D)\n");
		  }
	  	hdcj(36);
	  	things[9]++;
	  	if (things[9]<things[36])
	  	  continue;
	  	things[36]=things[9];
	  	if (things[0]>=7)
		  {
		  	if (rand()%8==3)
		  	  {
		  	  	cout<<"你升级了! 由于修道走火入魔,元神大损\n";
		  	  	things[2]-=800000*things[9];
		  	  	things[1]-=150000000*things[9];
			  }
		  	cout<<"你升级了!攻击+ 防御+ hp+\n";
	  		things[5]+=50000*things[9];
	  		things[6]+=random(20000,30000)*things[9];
	  		things[2]+=400000*things[9];
		  }
	  	cout<<"你升级了!攻击+5,防御+2,生命恢复40点\n";
	  	things[5]+=5;
	  	things[6]+=random(2,3);
	  	things[2]+=40;
	  	happened+=name+"升级了/";
	  }
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值