C 语言

关注公众号 jb51net

关闭
首页 > 软件编程 > C 语言 > C++人生模拟器

利用C++制作人生模拟器游戏的示例代码

作者:YT177

这篇文章主要为大家详细介绍了如何利用C++制作一个当下很火的人生模拟器游戏,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下

要制作一个人生模拟器,首先需要设计游戏的基本框架,并构思游戏的玩法,规则和内容。

然后,在C++中实现这个框架并添加游戏所需的各种类、函数和变量。其中,有几个关键的方面需要考虑:

模拟生命周期:利用C++的类和对象特性,可以创建一个Person类来描述每个角色的基本属性。在这个类中,你需要设置角色的生命值、年龄、教育程度、工作状态等基本属性,并提供对这些属性的管理方法。

模拟社交网络:你需要设计一种数据结构来存储每个角色的社交网络,并编写相应的函数来处理社交网络的增,删,查和更新。这样,你可以让角色通过社交网络结识新朋友,建立亲密关系或者产生矛盾等情况。

模拟职业发展:你还需要设计一种数据结构来存储每个角色的职业信息,并编写相应的函数来处理职业的增,删,查和更新。这样,你可以让角色通过不同的职业发展道路,积累财富,并提升自己的社会地位。

模拟经济系统:你需要设计一种数据结构来存储角色的金钱和财产信息,并编写相应的函数来处理这些数据。这样,你可以让角色通过工作赚钱,购买房产、车辆等有价值的资产,从而实现财务自由。

模拟娱乐生活:你还可以为游戏添加各种娱乐和休闲活动,例如旅游、参加虚拟活动、购物等。这样,玩家可以在游戏中获得更多的快乐和乐趣。

以上便是制作人生模拟器需要考虑的几个关键方面。当然,要实现一个完整的人生模拟器需要具备一定的编程技巧和经验,需要不断地进行调试和优化。

我可以向您介绍一个简单版本的人生模拟器,其中包含了基本的角色属性和生命周期的模拟。

我们先创建一个Person类来描述每个角色的基本属性,如下所示:

#include <iostream>
#include <string>
using namespace std;
 
class Person {
  private:
    string name;
    int age;
    double health;
    double intelligence;
    double wealth;
    
  public:
    Person(string n, int a) : name(n), age(a), health(100), intelligence(50), wealth(0) {}
    
    void aging() {
        age++;
    }
    
    void print_status() const {
        cout<< "Name: "<< name<< ", Age: "<< age<< ", Health: "<< health<< ", Intelligence: "<< intelligence<< ", Wealth: "<< wealth<< endl;
    }
};

在这个类中,我们设置了角色的姓名,年龄,健康状态,智商和财富等基本属性,并提供了对这些属性的管理方法。

然后,我们可以在主函数中创建一个Person对象,如下所示:

int main() {
    Person person("Tom", 20);
    for (int i = 0; i < 10; i++) {
        person.aging();
        person.print_status();
    }
    return 0;
}

在这个例子中,我们将Tom的初始年龄设置为20岁,通过不断地模拟时间的流逝来让他变老。每次调用aging函数,Tom的年龄就会加1,最后我们打印出Tom的基本信息。

当然,这只是人生模拟器的一个简单例子,我们需要结合实际需求,继续完善这个程序的各种功能和玩法。

方法补充

除了上文简单的方法,小编还为大家整理了一个人生重开模拟器修仙版的示例代码,希望对大家有所帮助

SGK_rsckmnq.h

#include<bits/stdc++.h>
#include<windows.h>
#include<fstream>
#include<conio.h>
#include<unistd.h>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
	void gotoxy(int x,int y){
	int xx=0x0b;
	HANDLE hOutput;
	COORD loc;
	loc.X=x;
	loc.Y=y;
	hOutput=GetStdHandle(STD_OUTPUT_HANDLE);
	SetConsoleCursorPosition(hOutput,loc);
	}
	void yanse(int n)//颜色
	{
	if(n==0)SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY);
	else if(n==16)SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
	else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), n);
	return;
		//8:亮灰色,9:亮蓝色,10:亮绿色,11:亮蓝色
		//12:亮红色,13:亮粉色,14:亮黄色,15:亮白色
		//2~7为上面对应颜色的暗色,1:黑色 
	}
	int rand__(int q){//随机数。 
	srand(time(0));
	int a=rand()%q+1;
	return a;	
	}
	void close_Fast(){//关闭快速编辑模式 
    HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
	DWORD mode;
	GetConsoleMode(hStdin, &mode);
	mode &= ~ENABLE_QUICK_EDIT_MODE;
	SetConsoleMode(hStdin, mode);	
	}  
	bool shubiao_(int a){//鼠标按下判断 
	if(a==1){
	if(KEY_DOWN(VK_LBUTTON)){return 1;}}//鼠标左键按下
	if(a==2){if(KEY_DOWN(VK_RBUTTON)){return 1;}}//鼠标右键按下
	}
	int shubiao_xy(int q,int w,int e){//鼠标位置判断 
	POINT p;
	HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
	HWND h=GetForegroundWindow();
	CONSOLE_FONT_INFO consoleCurrentFont;
	int a;
	if(q==1||shubiao_(w)==1){
	POINT p;
	GetCursorPos(&p);
	ScreenToClient(h,&p);               //获取鼠标在窗口上的位置
	GetCurrentConsoleFont(hOutput, FALSE, &consoleCurrentFont); //获取字体信息
	if(e==0){a=p.x/=consoleCurrentFont.dwFontSize.X;return a;}
	else {a=p.y/=consoleCurrentFont.dwFontSize.Y;return a;}}
	}
	char anjian_(int a){
	if(a==0){
	if(_kbhit()){
	char q=_getch();
	return q;}
	}
	if(a==1){
	if(_getch()){
	char q=_getch();
	return q;}}
	}
	void bb(){
	yanse(10);	
	cout << "库名:SGK_rsckmnq"<<endl;
	cout << "类型:拓展库"<<endl;
	cout << "版本号:1.5"<<endl;}
	void ckdx(int x,int y){//窗口大小,位置 
	MoveWindow(FindWindow("ConsoleWindowClass",NULL),0,0,x,y,true);	
	}
	void SetSize(unsigned x,unsigned y)//窗口大小 x,y
	{
 	char cmd[64];
 	sprintf(cmd,"mode con cols=%d lines=%d",x,y);
 	system(cmd);
	}
	int ying_cang(){
	HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO CursorInfo;
	GetConsoleCursorInfo(handle, &CursorInfo);
	CursorInfo.bVisible = false; 
	SetConsoleCursorInfo(handle, &CursorInfo);
	}
	int xian_shi(){
	HANDLE h_GAME =GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO cursor_info;
	GetConsoleCursorInfo(h_GAME,&cursor_info);
	cursor_info.bVisible=true;
	SetConsoleCursorInfo(h_GAME,&cursor_info);
	}
	int yingcang(){
	HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO CursorInfo;
	GetConsoleCursorInfo(handle, &CursorInfo);
	CursorInfo.bVisible = false; 
	SetConsoleCursorInfo(handle, &CursorInfo);
	}
	int xianshi(){
	HANDLE h_GAME =GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO cursor_info;
	GetConsoleCursorInfo(h_GAME,&cursor_info);
	cursor_info.bVisible=true;
	SetConsoleCursorInfo(h_GAME,&cursor_info);
	}

c++人生重开模拟器.cpp

#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
#pragma comment (lib, "User32.lib")
#include<io.h>
#include<stdio.h>
#include<windows.h>
#include<conio.h>
#include<stdlib.h>
#include<time.h>
#define LEN 30
#define WID 25
#include<bits/stdc++.h>
#include<iostream>
#include<fstream>
#include<algorithm>
#include<windows.h>
#include<cstdlib>
#include<ctime>
#include<conio.h>
#include<iostream>
#include<fstream>
#include<algorithm>
#include <string>
#include <Windowsx.h>
#include <cmath>
#include <sstream>
#include <iomanip>
#include <vector>
#include <olectl.h>
#include<cmath>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<windows.h>
#include<algorithm>
#include <fstream>
#include"SGK_rsckmnq.h"
using namespace std;
int w[15],b[9999],jk[99];
int tuiyoupan=0;
double u=1;
string win11;
string sbsb="tanyu";
void window(){
typedef void(__stdcall*NTPROC)(DWORD*,DWORD*,DWORD*);
HINSTANCE hinst=LoadLibrary("ntdll.dll");
DWORD dwMajor,dwMinor,dwBuildNumber;
NTPROC proc=(NTPROC)GetProcAddress(hinst,"RtlGetNtVersionNumbers"); 
proc(&dwMajor,&dwMinor,&dwBuildNumber);
if(dwMajor==6&&dwMinor==1) win11="7";
if(dwMajor==6&&dwMinor==3) win11="8.1";
if(dwMajor==6&&dwMinor==2) win11="8";
if(dwMajor==10&&dwMinor==0) win11="10";
}
POINT p;
HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
HWND h=GetForegroundWindow();
CONSOLE_FONT_INFO consoleCurrentFont;
char buf[1000];
int main(){
SYSTEMTIME sys;
int cundang=0;
system("mode con cols=70 lines=30");
window();
yingcang();
system("color 0f");
fstream a12418;
a12418.open("D:\\c++人生重开模拟器(修仙7.5版)\\rsckmnq\\日志\\日志(1).txt",ios::out);
gotoxy(31,4);
cout<<"注意事项";
gotoxy(10,5);
cout<<"1.c++人生重开模拟器(修仙7.5版)未经允许,不得转载";
gotoxy(21,6);
cout<<"2.本作品由闪弓工作室独自完成";
gotoxy(3.5,7);
cout<<"3.请将<c++人生重开模拟器(修仙7.5版)>文件夹放入D盘,再运行游戏";
gotoxy(31,11);
cout<<"使用说明";
gotoxy(13.5,12);
cout<<"1.当需要输入时,输入内容后请按回车键(Enter)";
gotoxy(0,13);
cout<<"2.请按照提示进行操作,不要瞎搞;代码不要乱改。(游戏运行出问题别说我没提";
gotoxy(9,14);
cout<<"醒你;如果不小心删掉了一点代码,按<Ctrl+z>快捷键撤回)";
gotoxy(26.5,15);
cout<<"bug上传,请联系:";
gotoxy(22,16);
cout<<"邮箱:yuhaoteng666@163.com";
gotoxy(27.5,17);
cout<<"微信:YHT201183";
gotoxy(28,20);
cout<<"阅读完后请按↓键";
while(1){
if(KEY_DOWN(VK_DOWN)) break;
Sleep(1);
}
system("cls");
Sleep(500);
system("color 0f");
gotoxy(29,7);
cout<<"健康游戏提醒";
gotoxy(21,9);
cout<<"抵制不良游戏,拒绝盗版游戏。";
gotoxy(21,10);
cout<<"注意自身保护,谨防受骗上当。";
gotoxy(21,11);
cout<<"适度游戏益脑,沉迷游戏伤身。";
gotoxy(21,12);
cout<<"合理安排时间,享受健康生活。";
Sleep(2500);
system("cls");
unsigned seed;
srand(seed);
yanse(14);
	for(int i=1; i<=6; i++) {
		gotoxy(40-i+1,i+5);
		cout<<"▊";
	}
	for(int i=1; i<=5; i++) {
		gotoxy(35+i,11+i);
		cout<<"▊";
	}
	yanse(15);
	gotoxy(41,7);
	for(int i=1; i<=5; i++) {
		cout<<"\\"<<"\b";
		gotoxy(40+i,6+i);
	}
	gotoxy(45,11);
	cout<<"|";
	gotoxy(45-1,12);
	for(int i=1; i<=4; i++) {
		cout<<"/";
		gotoxy(44-i,12+i);
	}
	yanse(15);
	for(int i=1; i<=14; i++) {
		gotoxy(44-i+1,11);
		cout<<"-";
	}
	gotoxy(30,11);
	cout<<"<";
	Sleep(2000);
	yanse(15);
	gotoxy(41,7);
	for(int i=1; i<=10; i++) {
		cout<<"|";
		gotoxy(41,6+i);
	}
	yanse(14);
	for(int i=1; i<=6; i++) {
		gotoxy(40-i+1,i+5);
		cout<<"▊";
	}
	for(int i=1; i<=5; i++) {
		gotoxy(35+i,11+i);
		cout<<"▊";
	}
	system("cls");
	int a1=45,a2=1;
	for(int i=1; i<=13; i++) {
		yanse(15);
		gotoxy(45,11);
		cout<<"|";
		for(int i=1; i<=14; i++) {
			gotoxy(44-i+1,11);
			cout<<"-";
		}
		gotoxy(30,11);
		cout<<"<";
		for(int x=1; x<=9; x++) {
			gotoxy(a1,x+6);
			cout<<"|";
		}
		int a3=a1-1;
		yanse(14);
		for(int x=1; x<=5; x++) {
			gotoxy(a3,x+5);
			cout<<"▊";
			a3--;
		}
		if(a2>=5) {
			gotoxy(a3,11);
			cout<<"▊";
		}
		a3++;
		for(int x=7; x<=11; x++) {
			gotoxy(a3,x+5);
			cout<<"▊";
			a3++;
		}
		a1+=2;
		a2++;
		system("cls");
	}
	int a4=69,a5=9,a6=1;
	for(int i=1; i<=5; i++) {
		yanse(15);
		gotoxy(45,11);
		cout<<"|";
		for(int i=1; i<=14; i++) {
			gotoxy(44-i+1,11);
			cout<<"-";
		}
		gotoxy(30,11);
		cout<<"<";
		yanse(14);
		for(int x=a6; x<=5; x++) {
			gotoxy(a4,x+6);
			cout<<"▊";
			a4--;
		}
		a4+=2;
		for(int x=6; x<=a5; x++) {
			gotoxy(a4,x+6);
			cout<<"▊";
			a4++;
		}
		a4=69;
		a5--;
		a6++;
		system("cls");
	}
	yanse(15);
	gotoxy(45,11);
	cout<<"|";
	for(int i=1; i<=14; i++) {
		gotoxy(44-i+1,11);
		cout<<"-";
	}
	gotoxy(30,11);
	cout<<"<";
	for(int i=1; i<=23; i++){
		yanse(15);
		gotoxy(45,11);
		cout<<"|";
		for(int x=1; x<=14; x++) {gotoxy(44-x+1,11);cout<<"-";}
		gotoxy(30,11);cout<<"<";yanse(14);
		gotoxy(i-1,3);cout<<"            ■■■"<<endl;
		gotoxy(i-1,4);cout<<"          ■■■  "<<endl;
		gotoxy(i-1,5);cout<<"        ■■■    "<<endl;
		gotoxy(i-1,6);cout<<"      ■■■      "<<endl;
		gotoxy(i-1,7);cout<<"    ■■■        "<<endl;
		gotoxy(i-1,8);cout<<"  ■■■          "<<endl;
		gotoxy(i-1,9);cout<<"■■■            "<<endl;
		gotoxy(i-1,10);cout<<"■■■■■■■■■"<<endl;
		gotoxy(i-1,11);cout<<"■■■■■■■■■"<<endl;
		gotoxy(i-1,12);cout<<"            ■■■"<<endl;
		gotoxy(i-1,13);cout<<"          ■■■  "<<endl;
		gotoxy(i-1,14);cout<<"        ■■■    "<<endl;
		gotoxy(i-1,15);cout<<"      ■■■      "<<endl;
		gotoxy(i-1,16);cout<<"    ■■■        "<<endl;
		gotoxy(i-1,17);cout<<"  ■■■          "<<endl;
		gotoxy(i-1,18);cout<<"■■■            "<<endl;
		if(i!=23) system("cls");
	}
	gotoxy(28,20);yanse(10);cout<<"闪";
	Sleep(300);yanse(12);cout<<"弓";
	Sleep(300);yanse(13);cout<<"工";
	Sleep(300);yanse(14);cout<<"作";
	Sleep(300);yanse(15);cout<<"室";
	Sleep(300);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
gotoxy(28,22);
cout<<"加载中......"; 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE|FOREGROUND_RED|FOREGROUND_GREEN);
gotoxy(0,23);
cout<<"|--------------------------------------------------------------------|";
gotoxy(0,24);
cout<<"|                                                                    |";
gotoxy(0,25);
cout<<"|--------------------------------------------------------------------|";
gotoxy(1,24);
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"win11="<<win11<<endl;
if(win11=="10"){
for(int i=1;i<68;i++){
if(i>=1&&i<18) Sleep(5);
if(i==18) Sleep(1000);
if(i>18&&i<38) Sleep(5);
if(i==38) Sleep(1000);
if(i>38&&i<67) Sleep(5);
if(i==67) Sleep(1000);
cout<<"█";
}
}
if(win11!="10"){
for(int i=1;i<=34;i++){
if(i>=1&&i<10) Sleep(5);
if(i==10) Sleep(1000);
if(i>10&&i<26) Sleep(5);
if(i==26) Sleep(1000);
if(i>26&&i<34) Sleep(5);
if(i==34) Sleep(1000);
cout<<"█";
}
}
gotoxy(28,27);
Sleep(300); 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
cout<<"加载完成!";Sleep(3000);
for(;;){
system("cls");
srand(seed);
int fd,po=0,rt=0;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE|FOREGROUND_RED|FOREGROUND_GREEN);
gotoxy(20,9);
cout<<"c++人生重开模拟器(修仙7.5版)";
gotoxy(15.5,10);
cout<<"进入游戏请按→键   进入更新日志请按↓键";
gotoxy(27,11);
cout<<"退出游戏请按↑键";
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"c++人生重开模拟器(修仙7.5版):\n进入游戏请按→键   进入更新日志请按↓键   退出游戏请按↑键"<<endl;
int a=0,f=0,
g=0,h=0,j=0,k=0,l=0,qs=0,sq=0;
int s=0,d=0;
int q;
int as=0;
int zxc=100;
double yu=300,ui=100,io=30;
int zuizhongpan=0;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
while(1){
if(KEY_DOWN(VK_RIGHT)){q=1;a12418<<"q=1"<<endl;break;}
else if(KEY_DOWN(VK_LEFT)){q=2;a12418<<"q=2"<<endl;break;}
else if(KEY_DOWN(VK_UP)){q=0;a12418<<"q=0"<<endl;break;}
else if(KEY_DOWN(VK_DOWN)){q=3;a12418<<"q=3"<<endl;break;}
Sleep(1);
}
if(q==3){
int zhiyin=0;
system("mode con cols=105 lines=41");
gotoxy(39,0);
cout<<"更新日志(退出按Backspace键)"<<endl;Sleep(200);
gotoxy(0,1);
cout<<"c++人生重开模拟器(修仙1.0版):";Sleep(5);
gotoxy(0,2);
cout<<"c++人生重开模拟器(修仙版)问世!";Sleep(5);
gotoxy(0,5);
cout<<"c++人生重开模拟器(修仙1.5版):";Sleep(5);
gotoxy(0,6);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(0,7);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(0,10);
cout<<"c++人生重开模拟器(修仙2.0版):";Sleep(5);
gotoxy(0,11);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(0,12);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(0,15);
cout<<"c++人生重开模拟器(修仙2.5版):";Sleep(5);
gotoxy(0,16);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(0,17);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(0,20);
cout<<"c++人生重开模拟器(修仙3.0版):";Sleep(5);
gotoxy(0,21);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(0,22);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(0,25);
cout<<"c++人生重开模拟器(修仙3.5版):";Sleep(5);
gotoxy(0,26);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(0,27);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(0,30);
cout<<"c++人生重开模拟器(修仙4.0版):";Sleep(5);
gotoxy(0,31);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(0,32);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(0,35);
cout<<"c++人生重开模拟器(修仙4.5版):";Sleep(5);
gotoxy(0,36);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(0,37);
cout<<"加入了调查问卷!";Sleep(5);
gotoxy(0,38);
cout<<"修复了已知的BUG。";Sleep(5);
for(int i=1;i<=40;i++){
gotoxy(34,i);
cout<<"|";
Sleep(5);
}
gotoxy(36,1);
cout<<"c++人生重开模拟器(修仙5.0版):";Sleep(5);
gotoxy(36,2);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(36,3);
cout<<"更新了调查问卷。";Sleep(5);
gotoxy(36,4);
cout<<"加入了资料库!";Sleep(5);
gotoxy(36,5);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(36,8);
cout<<"c++人生重开模拟器(修仙5.5版):";Sleep(5);
gotoxy(36,9);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(36,10);
cout<<"更新了调查问卷。";Sleep(5);
gotoxy(36,11);
cout<<"加入了日志!";Sleep(5);
gotoxy(36,12);
cout<<"删除了资料库!";Sleep(5);
gotoxy(36,13);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(36,16);
cout<<"c++人生重开模拟器(修仙6.0版):";Sleep(5);
gotoxy(36,17);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(36,18);
cout<<"更新了调查问卷。";Sleep(5);
gotoxy(36,19);
cout<<"更新了开头";Sleep(5);
gotoxy(36,20);
cout<<"更新了日志。";Sleep(5);
gotoxy(36,21);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(36,24);
cout<<"c++人生重开模拟器(修仙6.5版):";Sleep(5);
gotoxy(36,25);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(36,26);
cout<<"更新了调查问卷。";Sleep(5);
gotoxy(36,27);
cout<<"更新了开头。";Sleep(5);
gotoxy(36,28);
cout<<"更新了日志。";Sleep(5);
gotoxy(36,29);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(36,32);
cout<<"c++人生重开模拟器(修仙7.0版)测";Sleep(5);
gotoxy(36,33);
cout<<"试版:";Sleep(5);
gotoxy(36,34);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(36,35);
cout<<"更新了调查问卷。";Sleep(5);
gotoxy(36,36);
cout<<"更新了开头。";Sleep(5);
gotoxy(36,37);
cout<<"更新了日志。";Sleep(5);
gotoxy(36,38);
cout<<"修复了已知的BUG。";Sleep(5);
for(int i=1;i<=40;i++){
gotoxy(70,i);
cout<<"|";
Sleep(5);
}
gotoxy(72,1);
cout<<"c++人生重开模拟器(修仙7.0版):";Sleep(5);
gotoxy(72,2);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(72,3);
cout<<"更新了调查问卷。";Sleep(5);
gotoxy(72,4);
cout<<"更新了开头。";Sleep(5);
gotoxy(72,5);
cout<<"更新了日志。";Sleep(5);
gotoxy(72,6);
cout<<"加入了安装包!";Sleep(5);
gotoxy(72,7);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(72,10);
cout<<"c++人生重开模拟器(修仙7.5版)测";Sleep(5);
gotoxy(72,11);
cout<<"试版:";
gotoxy(72,12);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(72,13);
cout<<"更新了开头。";Sleep(5);
gotoxy(72,14);
cout<<"更新了日志。";Sleep(5);
gotoxy(72,15);
cout<<"加入了更新日志。";Sleep(5);
gotoxy(72,16);
cout<<"删除了调查问卷。";Sleep(5);
gotoxy(72,17);
cout<<"删除了安装包。";Sleep(5);
gotoxy(72,18);
cout<<"修复了已知的BUG。";Sleep(5);
gotoxy(72,21);
cout<<"c++人生重开模拟器(修仙7.5版):";Sleep(5);
gotoxy(72,22);
cout<<"更新了游戏部分。";Sleep(5);
gotoxy(72,23);
cout<<"更新了开头。";Sleep(5);
gotoxy(72,24);
cout<<"更新了日志。";Sleep(5);
gotoxy(72,25);
cout<<"更新了更新日志。";Sleep(5);
gotoxy(72,26);
cout<<"修复了已知的BUG。";Sleep(5);
while(1){
if(KEY_DOWN(VK_BACK)){system("mode con cols=70 lines=30");zhiyin=1;break;}
Sleep(1);
}
}
int tuiyoupan=0;
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"tuiyoupan="<<tuiyoupan<<endl;
if(q==1){
int panduan=0;
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"ok,请选择天赋点(天赋点60):"<<endl;
int da=0;
double z=0,x=0,c=0,v=0;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"颜值: "<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"智力: "<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数: "<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"健康: "<<endl;
xianshi();
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
gotoxy(7,1);
cin>>z;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
gotoxy(7,2);
cin>>x;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
gotoxy(7,3);
cin>>c;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
gotoxy(7,4);
cin>>v;
yingcang();
cout<<endl;
if(z+x+c+v>60){
for(;;){
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"请正常选择天赋点(天赋点60):"<<endl; 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"颜值: "<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"智力: "<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数: "<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"健康: "<<endl;
xianshi();
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
gotoxy(7,1);
cin>>z;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
gotoxy(7,2);
cin>>x;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
gotoxy(7,3);
cin>>c;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
gotoxy(7,4);
cin>>v;
yingcang();
cout<<endl;
if(z+x+c+v<=60){break;}
}
}
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"."<<sys.wMilliseconds<<"> ";
a12418<<"z="<<z<<" x="<<x<<" c="<<c<<" v="<<v<<endl;
system("cls");
int asdf;
srand(time(0));
asdf=rand()%3+1;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"asdf="<<asdf;
if(asdf==1){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"你出生了,是男孩。"<<endl;
c=c*1000;
v=v+5;
a12418<<"(男)"<<endl;
}
if(asdf==2){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);	
cout<<"你出生了,是女孩。"<<endl;
c=c*100;
z=z+5;
a12418<<"(女)"<<endl;
}
if(asdf==3){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);	
cout<<"你出生了,是特殊的无性人!"<<endl;
c=c*200;
x=x+5;
a12418<<"(无性)"<<endl;
}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"颜值:"<<z<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"智力:"<<x<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数:"<<c<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"健康:"<<v<<" "<<endl<<endl;
Sleep(300);	
GetLocalTime(&sys);
a12418<<endl;
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"普通人阶段"<<endl;
for(int i=1;i<100;i++){
int rt=0;
int a=rand()%35+1;
int asd=0,sdf=0,dfg=0,fgh=0;
a12418<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"i="<<i<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"rt="<<rt<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"a="<<a<<endl;
if(0>=v){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"第"<<i<<"年:"<<"你因为突发病或事件死了.(注意身体健康)"<<endl;da=1;break;
}
if(a==1){cout<<"第"<<i<<"年:"<<"你捡到了养颜宝典,颜值加3."<<endl;z=z+3;rt=1;}
if(a==2){cout<<"第"<<i<<"年:"<<"你捡到0.2斤铁,钱数加200."<<endl;c=c+200;rt=1;}
if(a==3){cout<<"第"<<i<<"年:"<<"你被人诈骗了,钱数减600."<<endl;c=c-600;rt=1;dfg=1;}
if(a==4){cout<<"第"<<i<<"年:"<<"你学了一本书,智力加3."<<endl;x=x+3;rt=1;}
if(a==5){cout<<"第"<<i<<"年:"<<"你捡到了一个钻戒,钱数加2000."<<endl;c=c+2000;rt=1;}
if(a==6&&jk[1]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:有一个人被车撞了。他死前大喊”不!我可是10世转修者!“"<<endl;jk[1]++;rt=1;}
else if(a==6&&jk[1]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==7&&jk[2]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:2046年,宇航员发现月球是空心的!"<<endl;jk[2]++;rt=1;}
else if(a==7&&jk[2]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==8&&jk[3]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:人类发现了外星文明"<<endl;jk[3]++;rt=1;}
else if(a==8&&jk[3]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==9&&jk[4]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:闪弓工作室是在2022年10月10日成立的!"<<endl;jk[4]++;rt=1;}
else if(a==9&&jk[4]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==10&&jk[5]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:人类成功移民火星!"<<endl;jk[5]++;rt=1;}
else if(a==10&&jk[5]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==11&&jk[6]==0){cout<<"第"<<i<<"年:"<<"日本被和谐成月本."<<endl;jk[6]++;rt=1;}
else if(a==11&&jk[6]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==12&&jk[7]==0){cout<<"第"<<i<<"年:"<<"中国GPS超过美国."<<endl;jk[7]++;rt=1;}
else if(a==12&&jk[7]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==18){cout<<"第"<<i<<"年:"<<"你被特别培训,全方面提升3."<<endl;z=z+3;x=x+3;v=v+3;rt=1;}
if(a==19){cout<<"第"<<i<<"年:"<<"你不小心用小刀划了脸,颜值减5,健康减1."<<endl;z=z-5;rt=1;v=v-1;asd=1;fgh=1;}
if(a==20){cout<<"第"<<i<<"年:"<<"你不小心被车撞了脑袋,智力减5,健康减5."<<endl;x=x-5;rt=1;v=v-5;sdf=1;fgh=1;}
if(a==21){cout<<"第"<<i<<"年:"<<"你患上了感冒,健康减1."<<endl;v=v-1;rt=1;fgh=1;}
if(a==22){cout<<"第"<<i<<"年:"<<"你坚持锻炼,健康加2."<<endl;v=v+2;rt=1;}
if(a==23){cout<<"第"<<i<<"年:"<<"因为你惹了一只狼狗,所以你每天被狗追着跑...健康加3."<<endl;v=v+3;rt=1;}
if(a==24){cout<<"第"<<i<<"年:"<<"因为你勤奋工作,所以钱数加3000!"<<endl;c=c+3000;rt=1;}
if(a==25){
if(jk[8]==0){
if(c>=100000){cout<<"第"<<i<<"年:"<<"你向乞丐买了一本《古仙图》.钱数减100000."<<endl;c=c-100000;po=po+1;jk[8]++;rt=1;dfg=1;}
else if(c<100000){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
}
else if(jk[8]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
}
if(a==26){cout<<"第"<<i<<"年:"<<"你捡到了100元"<<endl;c=c+100;rt=1;}
if(a==27){cout<<"第"<<i<<"年:"<<"你突然病倒了!健康减5!"<<endl;v=v-5;fgh=1;rt=1;}
if(a==28&&z>=20){cout<<"第"<<i<<"年:"<<"你迷到了一大堆人!"<<endl;rt=1;}
else if(a==28&&z<20){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==29&&jk[9]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:中国发现了外星文明!"<<endl;x=x+10;jk[9]++;rt=1;}
else if(a==29&&jk[9]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;rt=1;}
if(a==32&&z<=1){cout<<"第"<<i<<"年:"<<"你因为颜值太低了,被人摁在地上摩擦!健康减1!"<<endl;v=v-1;fgh=1;rt=1;}
if(a==33&&x>=20){cout<<"第"<<i<<"年:"<<"你因为智力太高了,参加比赛获得了500元!"<<endl;c=c+500;rt=1;}
else if(a==33&&x<20){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==34){
if(i<=18){
if(x<10){cout<<"第"<<i<<"年:"<<"你因为智力太低了,被妈妈揍了一顿!健康减1."<<endl;v-=1;fgh=1;rt=1;}
if(x>=10){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
}
if(i>18){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
} 
if(a==13||a==14||a==15||a==16||a==17||a==32){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==35&&jk[10]<=2){cout<<"第"<<i<<"年:"<<"你患上了新冠,健康减3."<<endl;v=v-3;rt=1;fgh=1;jk[10]++;}
else if(a==35&&jk[10]>2){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(c<0){cout<<"第"<<i<<"年:"<<"你欠债了"<<c<<"元"<<endl;rt=1;continue;}
if(c<=50){cout<<"第"<<i<<"年:"<<"你破产了!!全方面减2."<<endl;z=z-2;x=x-2;v=v-2;asd=1,sdf=1;rt=1;}
if(rt==0){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(asd==1){x=x+0.2;c=c+1000;v=v+0.2;}
if(sdf==1){z=z+0.2;c=c+1000;v=v+0.2;}
if(dfg==1){z=z+0.2;x=x+0.2;v=v+0.2;}
if(fgh==1){z=z+0.2;x=x+0.2;c=c+1000;}
else{z=z+0.2;x=x+0.2;c=c+1000;v=v+0.2;}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"颜值:"<<z<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"智力:"<<x<<" ";
if(c>=0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数:"<<c<<" ";}
else{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数:-"<<c<<" ";	
}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"健康:"<<v<<" "<<endl<<endl;
Sleep(yu);
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"asd="<<asd<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"sdf="<<sdf<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"dfg="<<dfg<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"fgh="<<fgh<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"z="<<z<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"x="<<x<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"c="<<c<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"v="<<v<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"da="<<da<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"po="<<po<<endl;
}
int ghj[9999]={0};
int qw=150;
if(da==1){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);cout<<"寿元终.";Sleep(2000);panduan=1;}
else{
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"第100年:你打开了小盒子,发现了《修仙功》这本修仙功法,开始修仙之路,寿元提升至150年。";
if(po>0){cout<<"你发现当初买的《古仙图》比《修仙功》效果更好!";}
cout<<endl;
Sleep(1000);
u=u+(z*0.001)+(x*0.001)+(c*0.001)+(v*0.001);
int panduan3=0;
GetLocalTime(&sys);
a12418<<endl;
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"修仙阶段"<<endl;
for(int i=101;i<=qw;i++){
GetLocalTime(&sys);
a12418<<endl;
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"i="<<i<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"u="<<u<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"qw="<<qw<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"ui="<<ui<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
if(u<=400){
int rt=0;
fd=rand()%30+1;
if(fd==1){cout<<"第"<<i<<"年:"<<"你找到灵气聚集之处,修为大幅度上升。"<<endl;u=u+1.5;rt=1;}
if(fd==44){cout<<"第"<<i<<"年:"<<"你找到异果,修为小幅度上升。"<<endl;u=u+1;rt=1;}
if(fd==25){cout<<"第"<<i<<"年:"<<"你走火入魔,修为大幅度下降。"<<endl;u=u-2;rt=1;}
if(fd==30){cout<<"第"<<i<<"年:"<<"你杀了一位筑基期修仙者,修为大幅度上升。"<<endl;u=u+1.5;rt=1;}
if(fd==5&&ghj[1]<=2){cout<<"第"<<i<<"年:"<<"你获得渡劫失败的渡劫期修仙者传承,修为提升5。"<<endl;u=u+5;ghj[1]++;rt=1;}
if(fd==33&&ghj[1]>2){cout<<"第"<<i<<"年:"<<"修行..."<<endl;u=u+0.5;rt=1;}
if(fd==7){cout<<"第"<<i<<"年:"<<"你悟了一些《神仙图》的内容,修为加快提升。"<<endl;po=po+0.2;rt=1;}
if(fd==8){cout<<"第"<<i<<"年:"<<"你不认真修行,修为小幅度下降。"<<endl;u=u-1;rt=1;}
if(rt==0){cout<<"第"<<i<<"年:"<<"修行..."<<endl;u=u+0.5;}
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"rt="<<rt<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"fd="<<fd<<endl;
}
else{
int gd;
gd=rand()%15+1;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"gd="<<gd<<endl;
if(gd==1&&sq==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟透了伟大的马克思主义。"<<endl;u=u+1;sq=1;}
else{if(gd==1&&sq==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}	
if(gd==2&&qs==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了空手道,好像并没有什么卵用。"<<endl;u=u+1;qs=1;}
else{if(gd==2&&qs==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}	
if(gd==3&&s==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了金之大道。"<<endl;u=u+4;s=1;a=a+1;}
else{if(gd==3&&s==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}	
if(gd==4&&d==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了木之大道。"<<endl;u=u+4;d=1;a=a+1;}
else{if(gd==4&&d==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}
if(gd==5&&f==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了水之大道。"<<endl;u=u+4;f=1;a=a+1;}
else{if(gd==5&&f==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}	
if(gd==6&&g==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了火之大道。"<<endl;u=u+4;g=1;a=a+1;}
else{if(gd==6&&g==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}
if(gd==7&&h==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了土之大道。"<<endl;u=u+4;h=1;a=a+1;}
else{if(gd==7&&h==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}
if(gd==8&&j==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了生命大道。"<<endl;u=u+5;j=1;a=a+1;}
else{if(gd==8&&j==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}
if(gd==9&&k==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了毁灭大道。"<<endl;u=u+5;k=1;a=a+1;}
else{if(gd==9&&k==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}
if(gd==10&&l==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了混沌大道。"<<endl;u=u+5;l=1;a=a+1;}
else{if(gd==10&&l==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}}
if(gd!=1&&gd!=2&&gd!=3&&gd!=4&&gd!=5&&gd!=6&&gd!=7&&gd!=8&&gd!=9&&gd!=10){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.5;}
if(sq==1&&qs==1&&s==1&&d==1&&f==1&&g==1&&h==1&&j==1&&k==1&&l==1){ui=25;}
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"sq="<<sq<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"qs="<<qs<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"s="<<s<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"d="<<d<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"f="<<f<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"g="<<g<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"h="<<h<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"j="<<j<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"k="<<k<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"l="<<l<<endl;
}
u=u+po;	
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
cout<<"灵力点:"<<u<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
if(u>=2&&u<4&&b[1]==0){cout<<"突破凝气初期1星,寿元提升至160年。"<<endl;qw=160;b[1]=1;}
if(u>=4&&u<6&&b[2]==0){cout<<"突破凝气初期2星,寿元提升至170年。"<<endl;qw=170;b[2]=1;}
if(u>=6&&u<8&&b[3]==0){cout<<"突破凝气初期3星,寿元提升至180年。"<<endl;qw=180;b[3]=1;}
if(u>=8&&u<10&&b[4]==0){cout<<"突破凝气初期4星,寿元提升至185年。"<<endl;qw=185;b[4]=1;}
if(u>=10&&u<12&&b[5]==0){cout<<"突破凝气初期5星,寿元提升至190年。"<<endl;qw=190;b[5]=1;}
if(u>=12&&u<14&&b[6]==0){cout<<"突破凝气中期1星,寿元提升至200年。"<<endl;qw=200;b[6]=1;}
if(u>=14&&u<16&&b[7]==0){cout<<"突破凝气中期2星,寿元提升至210年。"<<endl;qw=210;b[7]=1;}
if(u>=16&&u<18&&b[8]==0){cout<<"突破凝气中期3星,寿元提升至220年。"<<endl;qw=220;b[8]=1;}
if(u>=18&&u<20&&b[9]==0){cout<<"突破凝气中期4星,寿元提升至230年。"<<endl;qw=230;b[9]=1;}
if(u>=20&&u<22&&b[10]==0){cout<<"突破凝气中期5星,寿元提升至240年。"<<endl;qw=240;b[10]=1;}
if(u>=22&&u<24&&b[11]==0){cout<<"突破凝气高期1星,寿元提升至250年。"<<endl;qw=250;b[11]=1;}
if(u>=24&&u<26&&b[12]==0){cout<<"突破凝气高期2星,寿元提升至260年。"<<endl;qw=260;b[12]=1;}
if(u>=26&&u<28&&b[13]==0){cout<<"突破凝气高期3星,寿元提升至270年。"<<endl;qw=270;b[13]=1;}
if(u>=28&&u<30&&b[14]==0){cout<<"突破凝气高期4星,寿元提升至280年。"<<endl;qw=280;b[14]=1;}
if(u>=30&&u<35&&b[15]==0){cout<<"突破凝气高期5星,寿元提升至290年。"<<endl;qw=290;b[15]=1;}
if(u>=35&&u<37&&b[16]==0){cout<<"突破筑基初期1星,寿元提升至300年。"<<endl;qw=300;b[16]=1;}
if(u>=37&&u<39&&b[17]==0){cout<<"突破筑基初期2星,寿元提升至310年。"<<endl;qw=310;b[17]=1;}
if(u>=39&&u<41&&b[18]==0){cout<<"突破筑基初期3星,寿元提升至320年。"<<endl;qw=320;b[18]=1;}
if(u>=41&&u<43&&b[19]==0){cout<<"突破筑基初期4星,寿元提升至330年。"<<endl;qw=330;b[19]=1;}
if(u>=45&&u<47&&b[20]==0){cout<<"突破筑基初期5星,寿元提升至340年。"<<endl;qw=340;b[20]=1;}
if(u>=47&&u<49&&b[21]==0){cout<<"突破筑基中期1星,寿元提升至350年。"<<endl;qw=350;b[21]=1;}
if(u>=49&&u<51&&b[22]==0){cout<<"突破筑基中期2星,寿元提升至360年。"<<endl;qw=360;b[22]=1;}
if(u>=51&&u<53&&b[23]==0){cout<<"突破筑基中期3星,寿元提升至370年。"<<endl;qw=370;b[23]=1;}
if(u>=55&&u<57&&b[24]==0){cout<<"突破筑基中期4星,寿元提升至380年。"<<endl;qw=380;b[24]=1;}
if(u>=57&&u<59&&b[25]==0){cout<<"突破筑基中期5星,寿元提升至390年。"<<endl;qw=390;b[25]=1;}
if(u>=59&&u<61&&b[26]==0){cout<<"突破筑基高期1星,寿元提升至400年。"<<endl;qw=400;b[26]=1;}
if(u>=61&&u<63&&b[27]==0){cout<<"突破筑基高期2星,寿元提升至410年。"<<endl;qw=410;b[27]=1;}
if(u>=63&&u<65&&b[28]==0){cout<<"突破筑基高期3星,寿元提升至420年。"<<endl;qw=420;b[28]=1;}
if(u>=65&&u<67&&b[29]==0){cout<<"突破筑基高期4星,寿元提升至430年。"<<endl;qw=430;b[29]=1;}
if(u>=69&&u<75&&b[30]==0){cout<<"突破筑基高期5星,寿元提升至440年。"<<endl;qw=440;b[30]=1;}
if(u>=75&&u<78&&b[31]==0){cout<<"突破金丹初期1星,寿元提升至450年。"<<endl;qw=450;b[31]=1;}
if(u>=78&&u<81&&b[32]==0){cout<<"突破金丹初期2星,寿元提升至460年。"<<endl;qw=460;b[32]=1;}
if(u>=81&&u<84&&b[33]==0){cout<<"突破金丹初期3星,寿元提升至470年。"<<endl;qw=470;b[33]=1;}
if(u>=84&&u<87&&b[34]==0){cout<<"突破金丹初期4星,寿元提升至480年。"<<endl;qw=480;b[34]=1;}
if(u>=87&&u<90&&b[35]==0){cout<<"突破金丹初期5星,寿元提升至490年。"<<endl;qw=490;b[35]=1;}
if(u>=90&&u<93&&b[36]==0){cout<<"突破金丹中期1星,寿元提升至500年。"<<endl;qw=500;b[36]=1;}
if(u>=93&&u<96&&b[37]==0){cout<<"突破金丹中期2星,寿元提升至510年。"<<endl;qw=510;b[37]=1;}
if(u>=96&&u<99&&b[38]==0){cout<<"突破金丹中期3星,寿元提升至520年。"<<endl;qw=520;b[38]=1;}
if(u>=99&&u<102&&b[39]==0){cout<<"突破金丹中期4星,寿元提升至530年。"<<endl;qw=530;b[39]=1;}
if(u>=102&&u<105&&b[40]==0){cout<<"突破金丹中期5星,寿元提升至540年。"<<endl;qw=540;b[40]=1;}
if(u>=108&&u<111&&b[41]==0){cout<<"突破金丹高期1星,寿元提升至550年。"<<endl;qw=550;b[41]=1;}
if(u>=111&&u<114&&b[42]==0){cout<<"突破金丹高期2星,寿元提升至560年。"<<endl;qw=560;b[42]=1;}
if(u>=114&&u<117&&b[43]==0){cout<<"突破金丹高期3星,寿元提升至570年。"<<endl;qw=570;b[43]=1;}
if(u>=117&&u<120&&b[44]==0){cout<<"突破金丹高期4星,寿元提升至580年。"<<endl;qw=580;b[44]=1;}
if(u>=120&&u<125&&b[45]==0){cout<<"突破金丹高期5星,寿元提升至590年。"<<endl;qw=590;b[45]=1;}
if(u>=125&&u<130&&b[46]==0){cout<<"突破元婴初期1星,寿元提升至600年。"<<endl;qw=600;b[46]=1;}
if(u>=130&&u<135&&b[47]==0){cout<<"突破元婴初期2星,寿元提升至610年。"<<endl;qw=610;b[47]=1;}
if(u>=135&&u<140&&b[48]==0){cout<<"突破元婴初期3星,寿元提升至620年。"<<endl;qw=620;b[48]=1;}
if(u>=140&&u<145&&b[49]==0){cout<<"突破元婴初期4星,寿元提升至630年。"<<endl;qw=630;b[49]=1;}
if(u>=145&&u<150&&b[50]==0){cout<<"突破元婴初期5星,寿元提升至640年。"<<endl;qw=640;b[50]=1;}
if(u>=150&&u<155&&b[51]==0){cout<<"突破元婴中期1星,寿元提升至650年。"<<endl;qw=650;b[51]=1;}
if(u>=155&&u<160&&b[52]==0){cout<<"突破元婴中期2星,寿元提升至660年。"<<endl;qw=660;b[52]=1;}
if(u>=160&&u<165&&b[53]==0){cout<<"突破元婴中期3星,寿元提升至670年。"<<endl;qw=670;b[53]=1;}
if(u>=165&&u<170&&b[54]==0){cout<<"突破元婴中期4星,寿元提升至680年。"<<endl;qw=680;b[54]=1;}
if(u>=170&&u<175&&b[55]==0){cout<<"突破元婴中期5星,寿元提升至690年。"<<endl;qw=690;b[55]=1;}
if(u>=175&&u<180&&b[56]==0){cout<<"突破元婴高期1星,寿元提升至700年。"<<endl;qw=700;b[56]=1;}
if(u>=180&&u<185&&b[57]==0){cout<<"突破元婴高期2星,寿元提升至710年。"<<endl;qw=710;b[57]=1;}
if(u>=185&&u<190&&b[58]==0){cout<<"突破元婴高期3星,寿元提升至720年。"<<endl;qw=720;b[58]=1;}
if(u>=190&&u<195&&b[59]==0){cout<<"突破元婴高期4星,寿元提升至730年。"<<endl;qw=730;b[59]=1;}
if(u>=195&&u<200&&b[60]==0){cout<<"突破元婴高期5星,寿元提升至740年。"<<endl;qw=740;b[60]=1;}
if(u>=200&&u<205&&b[61]==0){cout<<"突破化神初期1星,寿元提升至750年。"<<endl;qw=750;b[61]=1;}
if(u>=205&&u<210&&b[62]==0){cout<<"突破化神初期2星,寿元提升至760年。"<<endl;qw=760;b[62]=1;}
if(u>=210&&u<215&&b[63]==0){cout<<"突破化神初期3星,寿元提升至770年。"<<endl;qw=770;b[63]=1;}
if(u>=215&&u<220&&b[64]==0){cout<<"突破化神初期4星,寿元提升至780年。"<<endl;qw=780;b[64]=1;}
if(u>=220&&u<225&&b[65]==0){cout<<"突破化神初期5星,寿元提升至790年。"<<endl;qw=790;b[65]=1;}
if(u>=225&&u<230&&b[66]==0){cout<<"突破化神中期1星,寿元提升至800年。"<<endl;qw=800;b[66]=1;}
if(u>=230&&u<235&&b[67]==0){cout<<"突破化神中期2星,寿元提升至810年。"<<endl;qw=810;b[67]=1;}
if(u>=235&&u<240&&b[68]==0){cout<<"突破化神中期3星,寿元提升至820年。"<<endl;qw=820;b[68]=1;}
if(u>=240&&u<245&&b[69]==0){cout<<"突破化神中期4星,寿元提升至830年。"<<endl;qw=830;b[69]=1;}
if(u>=245&&u<250&&b[70]==0){cout<<"突破化神中期5星,寿元提升至840年。"<<endl;qw=840;b[70]=1;}
if(u>=250&&u<255&&b[71]==0){cout<<"突破化神高期1星,寿元提升至850年。"<<endl;qw=850;b[71]=1;}
if(u>=255&&u<260&&b[72]==0){cout<<"突破化神高期2星,寿元提升至860年。"<<endl;qw=860;b[72]=1;}
if(u>=260&&u<265&&b[73]==0){cout<<"突破化神高期3星,寿元提升至870年。"<<endl;qw=870;b[73]=1;}
if(u>=265&&u<270&&b[74]==0){cout<<"突破化神高期4星,寿元提升至880年。"<<endl;qw=880;b[74]=1;}
if(u>=270&&u<300&&b[75]==0){cout<<"突破化神高期5星,寿元提升至890年。"<<endl;qw=890;b[75]=1;}
if(u>=300&&u<310&&b[76]==0){cout<<"突破炼虚初期1星,寿元提升至900年。"<<endl;qw=900;b[76]=1;}
if(u>=310&&u<320&&b[77]==0){cout<<"突破炼虚初期2星,寿元提升至910年。"<<endl;qw=910;b[77]=1;}
if(u>=320&&u<330&&b[78]==0){cout<<"突破炼虚初期3星,寿元提升至920年。"<<endl;qw=920;b[78]=1;}
if(u>=330&&u<340&&b[79]==0){cout<<"突破炼虚初期4星,寿元提升至930年。"<<endl;qw=930;b[79]=1;}
if(u>=340&&u<350&&b[80]==0){cout<<"突破炼虚初期5星,寿元提升至940年。"<<endl;qw=940;b[80]=1;}
if(u>=350&&u<360&&b[81]==0){cout<<"突破炼虚中期1星,寿元提升至950年。"<<endl;qw=950;b[81]=1;}
if(u>=360&&u<370&&b[82]==0){cout<<"突破炼虚中期2星,寿元提升至960年。"<<endl;qw=960;b[82]=1;}
if(u>=370&&u<380&&b[83]==0){cout<<"突破炼虚中期3星,寿元提升至970年。"<<endl;qw=970;b[83]=1;}
if(u>=380&&u<390&&b[84]==0){cout<<"突破炼虚中期4星,寿元提升至980年。"<<endl;qw=980;b[84]=1;}
if(u>=390&&u<400&&b[85]==0){cout<<"突破炼虚中期5星,寿元提升至990年。"<<endl;qw=990;b[85]=1;}
if(u>=400&&u<410&&b[86]==0){cout<<"突破炼虚高期1星,寿元提升至1000年。"<<endl;qw=1000;b[86]=1;}
if(u>=410&&u<420&&b[87]==0){cout<<"突破炼虚高期2星,寿元提升至1010年。"<<endl;qw=1010;b[87]=1;}
if(u>=420&&u<430&&b[88]==0){cout<<"突破炼虚高期3星,寿元提升至1020年。"<<endl;qw=1020;b[88]=1;}
if(u>=430&&u<440&&b[89]==0){cout<<"突破炼虚高期4星,寿元提升至1030年。"<<endl;qw=1030;b[89]=1;}
if(u>=440&&u<450&&b[90]==0){cout<<"突破炼虚高期5星,寿元提升至1040年。"<<endl;qw=1040;b[90]=1;}
if(u>=450&&u<450&&b[91]==0){cout<<"突破合体初期1星,寿元提升至1050年。"<<endl;qw=1050;b[91]=1;}
if(u>=460&&u<460&&b[92]==0){cout<<"突破合体初期2星,寿元提升至1060年。"<<endl;qw=1060;b[92]=1;}
if(u>=470&&u<470&&b[93]==0){cout<<"突破合体初期3星,寿元提升至1070年。"<<endl;qw=1070;b[93]=1;}
if(u>=480&&u<480&&b[94]==0){cout<<"突破合体初期4星,寿元提升至1080年。"<<endl;qw=1080;b[94]=1;}
if(u>=490&&u<490&&b[95]==0){cout<<"突破合体初期5星,寿元提升至1090年。"<<endl;qw=1090;b[95]=1;}
if(u>=500&&u<500&&b[96]==0){cout<<"突破合体中期1星,寿元提升至1100年。"<<endl;qw=1100;b[96]=1;}
if(u>=510&&u<510&&b[97]==0){cout<<"突破合体中期2星,寿元提升至1110年。"<<endl;qw=1110;b[97]=1;}
if(u>=520&&u<520&&b[98]==0){cout<<"突破合体中期3星,寿元提升至1120年。"<<endl;qw=1120;b[98]=1;}
if(u>=530&&u<530&&b[99]==0){cout<<"突破合体中期4星,寿元提升至1130年。"<<endl;qw=1130;b[99]=1;}
if(u>=540&&u<540&&b[100]==0){cout<<"突破合体中期5星,寿元提升至1140年。"<<endl;qw=1140;b[100]=1;}
if(u>=550&&u<550&&b[101]==0){cout<<"突破合体高期1星,寿元提升至1150年。"<<endl;qw=1150;b[101]=1;}
if(u>=560&&u<560&&b[102]==0){cout<<"突破合体高期2星,寿元提升至1160年。"<<endl;qw=1160;b[102]=1;}
if(u>=570&&u<570&&b[103]==0){cout<<"突破合体高期3星,寿元提升至1170年。"<<endl;qw=1170;b[103]=1;}
if(u>=580&&u<580&&b[104]==0){cout<<"突破合体高期4星,寿元提升至1180年。"<<endl;qw=1180;b[104]=1;}
if(u>=590&&u<590&&b[105]==0){cout<<"突破合体高期5星,寿元提升至1190年。"<<endl;qw=1190;b[105]=1;}
if(u>=600&&u<999&&b[106]==0){cout<<"进入准备渡劫期,寿元提升至1200年。"<<endl;qw=1200;b[106]=1;panduan3=1;}
cout<<endl;
Sleep(ui);
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"panduan="<<panduan<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"panduan3="<<panduan3<<endl;
}
a12418<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"u="<<u<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"panduan="<<panduan<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"panduan3="<<panduan3<<endl;
if(panduan3==1){cout<<"寿元终。"<<endl;Sleep(1000);}
else{system("cls");cout<<"由于你修为不够,无法渡劫,所以死了。"<<endl;zuizhongpan++;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"zuizhongpan="<<zuizhongpan<<endl;
Sleep(3000);}
}
if(panduan==1){
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"你各方面都太弱了,无法渡劫,所以你死了。"<<endl;
zuizhongpan++;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"zuizhongpan="<<zuizhongpan<<endl;
Sleep(3000); 
}
else if(panduan==0&&zuizhongpan==0){
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"zuizhongpan="<<zuizhongpan<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
int mn=0;
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"开始度劫!!!"<<endl;
Sleep(300);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"金元神劫落下"<<endl;
if(s==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);	
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
cout<<"木元神劫落下"<<endl;
if(d==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"水元神劫落下"<<endl;
if(f==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"火元神劫落下"<<endl;
if(g==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"土元神劫落下"<<endl;
if(h==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"本源元神劫落下"<<endl;
if(a>=1){cout<<"你抗过了!"<<endl;
}else{mn=1;}
}else{mn=1;}
}else{mn=1;}
}else{mn=1;}
}else{mn=1;}
}else{mn=1;}
Sleep(300);
int panduan2=0;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"mn="<<mn<<endl;
if(mn==1){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);cout<<"你没抗过,被劈死了!";}	
if(mn==0&&u>=550){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"你度劫成功,飞升为仙。你作为“人”的一生结束了!"<<endl;}
else if(mn==0&&u<600){
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"但是你修为不够,无法飞升,被神用雷劫劈死了!"<<endl;
zuizhongpan++;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"zuizhongpan="<<zuizhongpan<<endl;
}
Sleep(3000);
if(zuizhongpan==0){
system("cls");
for(int i=1;i<=15;i++){w[i]=0;}
int j=10000;
cout<<"开启修神之路,神寿提升至10000年."<<endl;
Sleep(1000);
int ss=5;
a12418<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"修神阶段"<<endl;
for(int i=qw;i<=j;i++){
int kk;
kk=rand()%25+1;
a12418<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"i="<<i<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"kk="<<kk<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"j="<<j<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"ss="<<ss<<endl;
if(kk>=1&&kk<=16) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
if(kk>=17&&kk<=19) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
if(kk>=20&&kk<=24) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
if(kk==25) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
if(kk==1){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==2){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==3){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==4){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==5){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==6){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==7){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==8){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==9){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==10){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==11){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==12){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==13){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==14){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==15){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==16){cout<<"第"<<i<<"年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==17){cout<<"第"<<i<<"年:"<<"你与人强行双修,修为上涨X."<<endl;ss=ss+2;}
if(kk==18){cout<<"第"<<i<<"年:"<<"你与人强行双修,修为上涨X."<<endl;ss=ss+2;}
if(kk==19){cout<<"第"<<i<<"年:"<<"你与人强行双修,修为上涨X."<<endl;ss=ss+2;}
if(kk==20){cout<<"第"<<i<<"年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==21){cout<<"第"<<i<<"年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==22){cout<<"第"<<i<<"年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==23){cout<<"第"<<i<<"年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==24){cout<<"第"<<i<<"年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==25){cout<<"第"<<i<<"年:"<<"听神讲课,顿悟修为增长。"<<endl;ss=ss+5;}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"灵力点:"<<ss<<endl; 
if(w[1]==0&&ss==10||ss>10&&ss<15&&w[1]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到散仙上期,神寿提升到1500年。"<<endl;j=1500;w[1]=1;
}
if(w[2]==0&&ss==15||ss>15&&ss<20&&w[2]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到散仙中期,神寿提升到1700年。"<<endl;j=1700;w[2]=1;
}
if(w[3]==0&&ss==20||ss>20&&ss<25&&w[3]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到散仙下期,神寿提升到1900年。"<<endl;j=1900;w[3]=1;
}
if(w[4]==0&&ss==25||ss>25&&ss<30&&w[4]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到地仙上期,神寿提升到2000年。"<<endl;j=2000;w[4]=1;
}
if(w[5]==0&&ss==30||ss>30&&ss<35&&w[5]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到地仙中期,神寿提升到2200年。"<<endl;j=2200;w[5]=1;
}
if(w[6]==0&&ss==35||ss>35&&ss<40&&w[6]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到地仙下期,神寿提升到2400年。"<<endl;j=2400;w[6]=1;
}
if(w[7]==0&&ss==40||ss>40&&ss<45&&w[7]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到仙人上期,神寿提升到2600年。"<<endl;j=2600;w[7]=1;
}
if(w[8]==0&&ss==45||ss>45&&ss<50&&w[8]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到仙人中期,神寿提升到2800年。"<<endl;j=2800;w[8]=1;
}
if(w[9]==0&&ss==50||ss>50&&ss<55&&w[9]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到仙人下期,神寿提升到3000年。"<<endl;j=3000;w[9]=1;
}
if(w[10]==0&&ss==65||ss>55&&ss<60&&w[10]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到上仙上期,神寿提升到3200年。"<<endl;j=3200;w[10]=1;
}
if(w[11]==0&&ss==60||ss>60&&ss<70&&w[11]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到上仙中期,神寿提升到3400年。"<<endl;j=3400;w[11]=1;
}
if(w[12]==0&&ss==70||ss>70&&ss<80&&w[12]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到上仙下期,神寿提升到3600年。"<<endl;j=3600;w[12]=1;
}
if(w[13]==0&&ss==80||ss>80&&ss<90&&w[13]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到金仙上期,神寿提升到3800年。"<<endl;j=3800;w[13]=1;
}
if(w[14]==0&&ss==90||ss>90&&ss<100&&w[14]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到金仙中期,神寿提升到4000年。"<<endl;j=4000;w[14]=1;
}
if(w[15]==0&&ss==100||ss>100&&ss<110&&w[15]==0){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"你达到金仙下期,神寿提升到4200年。"<<endl;j=4200;w[15]=1;
}
cout<<endl;
Sleep(io);
}
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"j="<<j<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"ss="<<ss<<endl;
cout<<"寿元终!";Sleep(3000); 
}
}
q=0;
a12418<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"q更改,q="<<q<<endl;
tuiyoupan=1;
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"tuiyoupan更改,tuiyoupan="<<tuiyoupan<<endl;
}
if(q==0){
if(tuiyoupan==0) system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
a12418<<endl;
GetLocalTime(&sys);
a12418<<"<"<<sys.wYear<<"."<<sys.wMonth<<"."<<sys.wDay<<" "<<sys.wHour<<":"<<sys.wMinute<<":"<<sys.wSecond<<"> ";
a12418<<"已退出游戏"<<endl;
break;
}
}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE|FOREGROUND_RED|FOREGROUND_GREEN);
a12418.close();
if(tuiyoupan==1) cout<<endl;
system("pause");
return 0;
}

以上就是利用C++制作人生模拟器游戏的示例代码的详细内容,更多关于C++人生模拟器的资料请关注脚本之家其它相关文章!

您可能感兴趣的文章:
阅读全文