2
已解决
王铄
中级守护
中级守护
#include<bits/stdc++.h>
#include<Windows.h>
#include<conio.h>
#include<direct.h>
using namespace std;
int mm,wl,choose,gg=1,v=200;
void cls(){
system("cls");
}
void color(int a){if(a==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);if(a==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);if(a==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);if(a==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);if(a==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);if(a==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED);if(a==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_GREEN|BACKGROUND_BLUE);if(a==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_RED|BACKGROUND_BLUE);if(a==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_BLUE);if(a==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN);if(a==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY);if(a==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_GREEN|FOREGROUND_BLUE);}
void kj(){
color(7);
cout<<"\n\n\n\n\t\t\t 正在开机......\n\t\t\t wonka 1.0系统\n\n\t\t\t ";
color(6);
for(int i=1;i<=6;i++){
Sleep(1000);
cout<<"■";
}
color(7);
cout<<"\n\t\t\t 开机完成";
Sleep(3000);
cls();
color(5);
cout<<"\n\n\t\t\tw";
Sleep(100);
cout<<"o";
Sleep(100);
cout<<"n";
Sleep(100);
cout<<"k";
Sleep(100);
cout<<"a";
Sleep(100);
cout<<" ";
Sleep(100);
cout<<"系统";
Sleep(1000);
color(7);
cls();
}
void dl(){
while(mm!=5){
color(7);
cout<<"输入密码:(密码为x)\n";
cout<<"1.2x=30÷x\n";
cin>>mm;
if(mm==5){
break;
}
color(4);
cout<<"密码错误,请重新输入\n";
Sleep(1000);
cls();
}
cls();
color(2);
cout<<"密码正确";
Sleep(1000);
cls();
color(7);
}
void zy(){
color(7);
cls();
cout<<"\n wonka 1.0系统\n";
cout<<" 1---》关于wonka 1.0\n 2---》设置\n 3---》计算器\n 4---》网络(";
if(wl==0){
cout<<"未连接)";
}else if(wl==1){
cout<<"我的网络)";
}else if(wl==2){
cout<<"wonka Internet)";
}else if(wl==3){
cout<<"(*^▽^)//)";
}
cout<<"\n 5---》浏览器";
cout<<"\n 6---》720安全卫士";
cout<<"\n 7---》病毒(慎入)";
cout<<"\n 8---》我的电脑\n\t\t关机在设置里\n\t\t";
cin>>choose;
if(choose==1){
cls();
cout<<"wonka 1.0系统是仿照Windows系统,用C++创造的一个系统。\n目前版本为1.0,以后会更新\n请按任意键继续......";
getch();
zy();
}else if(choose==2){
cls();
cout<<"1.广告拦截\n2.关机\n3.本机信息\n";
cin>>choose;
cls();
if(choose==1){
cout<<"广告拦截状态:";
if(gg==1){
cout<<"关闭";
}else{
cout<<"开启";
}
cout<<"\n是否开启广告拦截?1:开启 其他数:关闭\n";
cin>>choose;
if(choose==1){
gg=0;
cout<<"\n广告拦截已开启";
}else{
gg=1;
cout<<"\n广告拦截已关闭";
}
Sleep(1000);
zy();
}else if(choose==2){
for(int i=1;i<=100;i++){
cls();
cout<<"正在关机\n";
cout<<"-------------\n";
cout<<"|关机进度:"<<i<<"%|\n";
cout<<"|-----------|\n";
Sleep(50);
}
cls();
cout<<"关机完成!";
Sleep(1000);
cls();
cout<<"再见,记得回来呀!";
return;
}else{
cout<<"本机信息:\nwonka 1.0版本\n创造于2024年1月4日\n本机描述:\n本机编号:6688";
Sleep(2000);
zy();
}
}else if(choose==3){
cls();
for(;;){
double a,b;
char c;
cout<<"输入算式(符号仅支持+ - * / ^ 得数保留五位小数)"<<endl;
cout<<"输入“数字&数字”退出"<<endl;
cin>>a>>c>>b;
if(c=='+'){
cout<<a<<"+"<<b<<"="<<a+b<<endl;
Sleep(1000);
system("cls");
}
if(c=='-'){
cout<<a<<"-"<<b<<"="<<a-b<<endl;
Sleep(1000);
system("cls");
}
if(c=='*'){
cout<<a<<"×"<<b<<"="<<(long double)a*b<<endl;
Sleep(1000);
system("cls");
}
if(c=='/'){
cout<<a<<"÷"<<b<<"="<<a/b<<endl;
Sleep(1000);
system("cls");
}
if(c=='^'){
long double s=pow(a,b);
cout<<a<<"^"<<b<<"="<<s<<endl;
Sleep(1000);
system("cls");
}if(c=='&'){
zy();
}
}
}else if(choose==5){
cls();
cout<<"-----------------------------+-x"<<endl;
cout<<"|Q https://____________________|"<<endl;
cout<<"| wk浏览器 |"<<endl;
cout<<"| -------------------------- |"<<endl;
cout<<"| | 1.哔哩哔哩| 2.黑网 | |"<<endl;
cout<<"| -------------------------- |"<<endl;
cout<<"| | 3.我的世界| 4.酷丁编程 | |"<<endl;
cout<<"--------------------------------"<<endl;
if(gg==1){
Sleep(3000);
cls();
cout<<"-----------------------------+-x"<<endl;
cout<<"|广告↓↓↓ |"<<endl;
cout<<"| 最新游戏上线啦! |"<<endl;
cout<<"| [挖宝石] |"<<endl;
cout<<"| 现在下载,还能免费拿99亿宝石!|"<<endl;
cout<<"| 心动不如行动,快去下载吧! |"<<endl;
cout<<"| →[点击此处下载领福利]← |"<<endl;
cout<<"--------------------------------"<<endl;
cout<<"|(不要广告?去设置开启广告拦截)|"<<endl;
cout<<"--------------------------------"<<endl;
Sleep(3000);
zy();
}
cin>>choose;
if(choose==1)system("start https://www.bilibili.com");
if(choose==2)system("start https://www.pranx.com/hacker");
if(choose==3){
cls();
color(4);
cout<<"\n!!!!!!本网站出问题啦,换个网站呗~";Sleep(3000);zy();
}
if(choose==4)system("start https://ke.kuding.cn/#/home");
}if(choose==4){
cout<<"网络状态:";
if(wl==0){
cout<<"未连接\n";
cout<<"请任意连接一个网络:\n1.我的网络\n2.wonka Internet\n3.(*^▽^)//\n";
}else if(wl==1){
cout<<"我的网络\n";
}else if(wl==2){
cout<<"wonka Internet\n";
}else if(wl==3){
cout<<"(*^▽^)//\n";
}
cin>>choose;
cout<<"\n连接完成";
if(choose==1){
wl=1;
}else if(choose==2){
wl=2;
}else if(choose==3){
wl=3;
}else{
wl=0;
}
Sleep(3000);
zy();
}else if(choose==6){
cls();
cout<<"\n\n\t\t\t720安全卫士\n\t\t正在开发中........";
Sleep(3000);
zy();
}else if(choose==7){
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
for(int i=1;i<=3;i++){
SetCursorPos(rand()%x,rand()%y);//鼠标移位
system("start https://ke.codingtang.com/tong/?id=13");
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);//鼠标自动点击
Sleep(50);
}
}else if(choose==8){
cout<<"本机信息:\nwonka 1.0版本\n创造于2024年1月4日\n本机描述:\n本机编号:6688";
Sleep(3000);
zy();
}else if(choose==114514){
cls();
for(int i=1;i<=250;i++){
cout<<"11445141919810田所浩二(首) 臭臭臭臭臭臭臭臭臭臭\t";
Sleep(20);
}
Sleep(2000);
cls();
color(6);
cout<<"error system :D :D :D\nerror id:1145141919810\nwhy?\nBecouse:your choose is'114514'\n\n电脑错误\n错误代码:1145141919810\n故障原因:您输入的数字是114514";
Sleep(6000);
cls();
return;
}
}
int main(){
srand(time(0));
kj();
dl();
zy();
}
复制到dev-C++
可以提一提建议
0
已采纳
沙宸安
高级启示者
高级启示者
酷町问答“操作系统”合集(如有遗漏请留言):
XA-codingtang操作系统:https://wenda.codingtang.com/questions/11806/
tiger系统:https://wenda.codingtang.com/questions/13379/
Getcord系统:https://wenda.codingtang.com/questions/11995/
wonka系统:https://wenda.codingtang.com/questions/27933/
GameOS:https://wenda.codingtang.com/questions/17482/
heOS:https://wenda.codingtang.com/questions/27722/
YOS:https://wenda.codingtang.com/questions/22466/
LOS:https://wenda.codingtang.com/questions/22569/
0
0
张书豪
中级守护
中级守护
#include<bits/stdc++.h>
#include<windows.h>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
void console(){
HANDLE hOut=GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO bInfo;
GetConsoleScreenBufferInfo(hOut,&bInfo);
SetConsoleTitle("Windows系统1.0");
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO CursorInfo;
GetConsoleCursorInfo(handle, &CursorInfo);//获取控制台光标信息
CursorInfo.bVisible = false; //隐藏控制台光标
SetConsoleCursorInfo(handle, &CursorInfo);//设置控制台光标状态
}void color(int a){//颜色函数
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
/*
1 深蓝色
2 深绿色
3 深青色
4 深红色
5 深粉色
i 黄色
7 深白色
8 灰色
9 浅蓝色
10 浅绿色
11 浅青色
12 浅红色
13 浅粉色
14 浅黄色
15 浅白色
背景
1~15 黑色
16~31 深蓝色
32~47 深绿色
48~63 深青色
64~79 深红色
'S'~95 深粉色
96~111 深黄色
112~127 深白色
128~143 灰色
144~159 浅蓝色
160~1'A' 浅绿色
176~191 浅青色
192~207 浅红色
208~223 浅粉色
224~239 浅黄色
240~255 浅白色
*/
}void start(){//开机效果
HANDLE hOutput;
COORD coord={0,0};
hOutput=GetStdHandle(STD_OUTPUT_HANDLE);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<" |";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<" |";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
system("cls");
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<" |";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<" |";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<" |";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<" |";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<" |";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<" |";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<"|";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(7);
cout<<"|";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<"|";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(1);
cout<<" ";
color(7);
cout<<"|";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(144);
cout<<" ";
color(7);
cout<<"|";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
Sleep(250);
SetConsoleCursorPosition(hOutput, coord);
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(64);
cout<<" ";
color(1);
cout<<" ";
color(32);
cout<<" ";
color(1);
cout<<endl<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(1);
cout<<endl;
cout<<" ";
color(16);
cout<<" ";
color(1);
cout<<" ";
color(96);
cout<<" ";
color(7);
cout<<endl<<endl;
cout<<" +-------------+";
cout<<endl;
cout<<" |";
color(1);
cout<<" ";
color(7);
cout<<"|";
cout<<endl;
cout<<" +-------------+"<<endl;
cout<<" Windows系统1.0";
system("cls");
}
int main(){
console();
system("mode con cols=200 lines=100");
start();
return 0;
}
我写的开机效果,可以试试
感谢 倪雨泽 提供的防闪屏代码
0
0
0
0
0
林炜曦
中级守护
中级守护
我有一个
#include"bits/stdc++.h"
#include"windows.h"
using namespace std;
int cj();
int MC();
int qp();
int bl();
int dg();
int ez();
int ss();
void sleep(int a){
Sleep(a);
}
void cls(){
system("cls");
}
void Close(){
for(int i=1;i<=10;i++){
sleep(50);
cls();
cout<<"OOO\n";
cout<<" O 挂机中\n";
sleep(50);
cls();
cout<<" OO\n";
cout<<" O 挂机中.\n";
cout<<" O\n";
sleep(50);
cls();
cout<<" O\n";
cout<<" O 挂机中..\n";
cout<<" OO\n";
sleep(50);
cls();
cout<<" \n";
cout<<" O 挂机中...\n";
cout<<"OOO";
sleep(50);
cls();
cout<<" \n";
cout<<"O 挂机中\n";
cout<<"OOO\n";
sleep(50);
cls();
cout<<"O \n";
cout<<"O 挂机中.\n";
cout<<"OO \n";
sleep(50);
cls();
cout<<"OO \n";
cout<<"O 挂机中..\n";
cout<<"O \n";
sleep(50);
cls();
cout<<"OOO\n";
cout<<"O 挂机中...\n";
cout<<" \n";
}
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
//return 0;
}
struct ys{
int key;
int i,y;
int a,n,b;
char x[5];
int name;
}yy;
//char x[101],sy[101];
void k(){
for(yy.i=0;yy.i<5;yy.i++){
yy.x[yy.i]='*';
}
}
int die(){
k();
for(yy.i=1;yy.i<=yy.n/50;yy.i++){
yy.y=yy.i;
printf("%d",yy.x[yy.i]);
}
printf(" %d星,你s了,分数为:%d分",yy.y,yy.n);
}
long long js();
//void Close();
int ky();
struct js{
long long x,y,end;
char op;
}jj;
long long X(){
jj.end=jj.x*jj.y;
}
long long Y(){
if( jj.y == 0){
printf( "除数为 0 退出运行...\n",stderr);
exit(-1);
}else if(jj.y!=0){
jj.end=jj.x/jj.y;
}
}
long long Z(){
// int t;
jj.end= pow(jj.x,jj.y);
}
long long I(){
jj.end=jj.x+jj.y;
}
long long H(){
jj.end=jj.x-jj.y;
}
void mima(){
const int password=347;
int x;
bool b;
for(int i=1;i<=5;i++){
cout<<"请输入密码:";
cin>>x;
if(x!=password){
cout<<"密码错误!\n密码提示:ASIIClwx";
sleep (2000);
cls();
}else{
b=1;
break;
}
}
if(!b){
Close();
}else{
cout<<"密码正确!";
sleep (1000);
cls();
return ;
}
}
int main(){
// createConsole("文本游戏");
int a;
for(int i=1;i<=10;i++){
sleep(50);
cls();
cout<<"OOO\n";
cout<<" O 开机中\n";
sleep(50);
cls();
cout<<" OO\n";
cout<<" O 开机中.\n";
cout<<" O\n";
sleep(50);
cls();
cout<<" O\n";
cout<<" O 开机中..\n";
cout<<" OO\n";
sleep(50);
cls();
cout<<" \n";
cout<<" O 开机中...\n";
cout<<"OOO";
sleep(50);
cls();
cout<<" \n";
cout<<"O 开机中\n";
cout<<"OOO\n";
sleep(50);
cls();
cout<<"O \n";
cout<<"O 开机中.\n";
cout<<"OO \n";
sleep(50);
cls();
cout<<"OO \n";
cout<<"O 开机中..\n";
cout<<"O \n";
sleep(50);
cls();
cout<<"OOO\n";
cout<<"O 开机中...\n";
cout<<" \n";
// cin>>a;
// if(a==1)break;
}
cls();
mima();
cout<<"\a\b\a\b\a\b";
cout<<"\t MOM\n";
cout<<"\tIHWHI\n";
cout<<"\t VAV\n ";
sleep(5000);
system("pause");
cls();
cout<<"欢迎!";
sleep(5000);
do {
sleep(5000);
yy.n=0;yy.a=0;yy.b=0;
cls();
cout<<"[1]关闭林林系统\n[2]杀手\n[3]吃鸡\n[4]二战互动游戏波兰篇\n[5]计算器\n[6]二战互动游戏德国篇\n[7]MC\n[8]二战\n[9]奇葩问答\n[10]坑人游戏\n\n";
cin>>yy.b;
cls();
switch(yy.b) {
case 2:
ss();
break;
case 3:
cj();
break;
case 4:
bl();
break;
case 5:
js();
break;
case 6:
dg();
break;
case 7:
MC();
break;
case 8:
ez();
break;
case 9:
qp();
break;
case 10:
ky();
default:
if(yy.b<1||yy.b>10){
cout<<"作为不听话小孩的奖励,你的电脑将会关机\n";
sleep(1000);
system("shutdown /s");
break;
}
}
} while(yy.b!=1);
Close();
}
int ss(){
srand(time(NULL));
int b,p,x,c,d,e=0,f=0,g,h=0,i=1,j,l,m,n=5,o=0;
printf("选择你的杀手等级(1-5)\n");
scanf("%d",&b);
printf("\n");
int a[6]={0,1,2,3,4,5},k[10]={0};
AA:while(n!=1)
{
if(i==1)
{
sleep (1000);
printf("存活者:%d %d %d %d %d\n\n",a[1],a[2],a[3],a[4],a[5]);
}
if(i==6) i=1;
if(a[i]==0)
{
i++;
continue;
}
sleep(1000);
printf("轮到%d号\n",i);
if(i==b)
{
sleep(1000);
printf("选择你的目标:%d %d %d %d %d\n",a[1],a[2],a[3],a[4],a[5]);
scanf("%d",&p);
}
else
do
p=rand()%5+1;
while(p!=i);
while(a[p]==0||p==i) p=rand()%5+1;
sleep(1000);
printf("%d号选择了%d号\n",i,p);
sleep(1000);
printf("%d号掷出了%d\n",i,c=rand()%6+1);
if(i>=c)
{
a[p]=0;
sleep(1000);
printf("%d号杀死了%d号\n\n",i,p);
n--;
}
else {sleep(1000); printf("%d号没有杀死目标\n\n",i);}
if(i==5&&a[p]==0)
{
if(rand()%3==1||rand()%3==2)
{
if(p==1&&f<=2)
{
sleep(1000); printf("5号无视1号复活权\n");
sleep(800); printf("直接将其杀死\n\n");
f=3;
}
if(p==2&&h==0)
{
sleep(1000); printf("5号无视2号复活权\n");
sleep(800); printf("直接将其杀死\n\n");
h=1;
}
if(p==3&&o==0)
{
sleep(1000); printf("5号无视3号复活权\n");
sleep(800); printf("直接将其杀死\n\n");
o=1;
}
}
}
if(a[1]==0)
{
if(f<=2)
{
sleep(1000);
printf("1号使用复活权\n");
f++; n++; a[1]=1;
if(f==1)
{
do g=rand()%5+1;
while(a[g]==0||g==1);
sleep(1000); printf("并随机诅咒了%d号\n",g);
sleep(1000); printf("%d号死了\n\n",g);
a[g]=0; n--;
}
}
else a[1]=0;
}
if(a[2]==0&&h==0)
{
sleep(1000);
printf("2号使用复活权\n");
n++;
a[2]=2;
do m=rand()%5+1;
while(a[m]==0||m==2);
sleep(1000); printf("并随机诅咒了%d号\n",m);
if(rand()%2==1)
{
a[m]=0;
sleep(1000); printf("%d号死了\n\n",m);
n--;
}
else
{
sleep(1000); printf("但他没死\n\n");
}
h=1;
}
if(a[3]==0&&o==0)
{
sleep(1000); printf("3号使用复活权\n\n"); a[3]=3; o++; n++;
}
if(i==4&&a[p]==0)
{
if(n==1) break;
else
{
sleep(1000); printf("4号使用再次攻击权\n");
goto AA;
}
}
if(a[b]==0&&e==0)
{
if(n==1) break;
printf("你死了,是否继续?是按0,否按1\n");
scanf("%d",&x);
if(x==1) break;
else e=1;
}
i++;
}
for(j=1;j<=5;j++) if(a[j]!=0) d=j;
if(x!=1)
{
sleep(800);
printf("%d号赢了",d);
}
else
printf("游戏结束");
}
int ky(){
string t;
cout<<"你想干什么?开始:play 结束:end 幸运转盘:happy :";
cin>>t;
if(t=="play")
{
cout<<"前面有一个大坑,你要干什么?1:跳进去 2:绕开 :";
cin>>t;
if(t=="1")
{
cout<<"虽然你这次成功了,但是下次就没这么幸运了!!!\n";
}
else
{
cout<<"谁知那里有一个怪物在等着你,于是你的电脑闭上了眼睛!!!\n";
sleep(1500);
//system("shutdown /s");
}
}
else if(t=="end")
{
cout<<"Bye\n";
}
else if(t=="happy")
{
int n;
cin>>n;
if(n==0)
{
cout<<"你受到邀请去参加XX的婚礼,到了以后才知道,这是你电脑的葬礼。于是你的的电脑闭上了眼睛!!!\n";
sleep(2000);
//system("shutdown /s");
}
else if(n==1)
{
cout<<"谢谢参与\n";
}
else if(n==2)
{
cout<<"你已被封号\n";
//system("shutdown /s");
}
else
{
cout<<"作为不听话小孩的奖励,你的电脑将会关机\n";
sleep(1000);
//system("shutdown /s");
}
}
else
{
cout<<"作为不听话小孩的奖励,你的电脑将会关机\n";
sleep(1000);
//system("shutdown /s");
}
cout<<"你喜欢吗?1:喜欢 0:不喜欢 :";
cin>>t;
if(t=="0")
{
cout<<"送你一个礼物,你一定会喜欢的。";
sleep(1000);
//system("shutdown /s");
}
}
int cj(){
cout<<" 吃鸡\n";
cout<<"你的名字叫:该死的货。\n";
cout<<"你的对友是:111,222,333。\n" ;
cout<<"飞机即将起飞,乘客们请系好您的安全带。(按数字键继续)\n";
//int yy.yy.a,n;yy.a放选项,n放分数
cin>>yy.a;
cout<<"飞机已起飞。\n";
cout<<"......是否跳伞?\n";
cout<<"1、跳;2、不跳(输入1或2继续)\n" ;
cin>>yy.a;
if(yy.a==1){
cout<<"是否开伞?\n";
cout<<"1、开;2、不开(输入1或2继续)\n";
cin>>yy.a;
if(yy.a==1){
cout<<"已开伞。\n已落地。\n";
cout<<"你现在在:鸟不拉屎的鬼地方。\n";
cout<<"是否搬家?\n";
cout<<"1、搬,2、不搬。(输入1或2继续)\n" ;
cin>>yy.a;
if(yy.a==1){
cout<<"已搬到:帝都。\n";
cout<<"你打死了J,加100分。\n";
yy.n=yy.n+100;
cout<<"你发现一个人。\n";
cout<<"1、过去,2、离开。(输入1或2继续)\n";
cin>>yy.a;
if(yy.a==1){
cout<<"你被999打死了,分数为"<<yy.n<<"分。";
}else{
cout<<"你走了。\n";
cout<<"111走过来。\n他给你一把枪,+50分。\n";
yy.n=yy.n+50;
cout<<"999发现了你。\n1、跑,2、打他,3、不动。(输入1、2或3继续)\n";
cin>>yy.a;
if(yy.a==1){
cout<<"他没打到你。\n你赢了,+5分\n";
yy.n=yy.n+5;
cout<<"您现在的分数为:"<<yy.n<<"分\n";
if(yy.n==300){
cout<<"你赢了。";
}else{
cout<<"你输了。";
}
}else if(yy.a==2){
cout<<"999死了,+150分。\n";
yy.n=yy.n+150;
cout<<"您现在的分数为:"<<yy.n<<"分\n";
if(yy.n==300){
cout<<"你赢了。";
}else{
cout<<"你输了。";
}
}else if(yy.a==3){
cout<<"你被999打死了,分数为"<<yy.n<<"分";
}
}
}else{
cout<<"你已进入毒气区。\n";
cout<<"你死了,分数为"<<yy.n<<"分。";
}
}else{
cout<<"你摔死了,分数为"<<yy.n<<"分。";
}
}else{
cout<<"你被1234567890AB一枪毙了。分数为"<<yy.n<<"分。";
}
}
int qp(){
cout<<" 啊哈,啊哈哈哈哈哈哈,鸡汤来咯,哈哈哈 问答 奥力给,干了!\n";
cout<<"即将开始,请输入名字 \n";
//int yy.a,n,c;a放选项,n放分数 c昵称(仅限数字)
cin>>yy.name;
cout<<"您好,尊敬的"<<yy.name<<",欢迎来到本奇葩问答\n";
cout<<"你吃奥力给吗\n";
cout<<"1、不吃;2、吃(输入1或2继续)\n" ;
cin>>yy.a;
if(yy.a==1){
cout<<"迪迦碎片如何合成\n";
cout<<"1、迪迦碎片;2、迪迦(输入1或2继续)\n";
cin>>yy.a;
if(yy.a==1){
cout<<"下一关,难度无限\n";
cout<<"当你饿的时候,你会吃奥力给吗\n";
cout<<"1、不吃,2、吃(输入1或2继续)\n" ;
cin>>yy.a;
if(yy.a==1){
cout<<"已获得:吃席之票。\n";
cout<<"你进入了撤硕\n";
yy.n=yy.n+100;
cout<<"你看见了一个伏拉夫\n";
cout<<"1、过去,2、离开。(输入1或2继续)\n";
cin>>yy.a;
if(yy.a==1){
cout<<"你被伏拉夫喷出来的粑粑喷死了\n你死了,分数为"<<yy.n<<"分";
}else{
cout<<"你走了。\n";
cout<<"你进入了老八饭店。\n你发现了一个座位,+114514分。\n";
yy.n=yy.n+14514;
cout<<"老板发现了你。\n 1、跑,2、打他,3、不动。(输入1、2或3继续)\n";
cin>>yy.a;
if(yy.a==1){
cout<<"你被老八秘制小汉堡制裁了。\n你升天了,+54088分,YOU DIED! NBNB!\n";
yy.n=yy.n+54088;
cout<<"你死了,分数为"<<yy.n<<"分";
}else if(yy.a==2){
cout<<"你赢了,+54188分,YOU WIN! NBNB!\n";
yy.n=yy.n+54188;
cout<<"你的分数为"<<yy.n<<"分";
}else if(yy.a==3){ cout<<"你被刘华强捅shi了,分数为"<<yy.n<<"分 NBNB!";
//returyy.n 0;
}
}
}else{ cout<<"yue~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
//return 0;
}
}else{
cout<<"有碎片你不要,你非要迪迦干吗子捏?";
//return 0;
}
}else{ cout<<"ye~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
//return 0;
}
}
int dg(){
cout<<" "<<"《二战互动(德国篇)》(不严谨)"<<endl<<endl<<"事件:";
cout<<endl<<"德奥合并(输入数字继续)"<<endl;
int a;
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"德国占领捷克(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"民心:"<<"\n"<<"但泽的丢失,激起了德国民众的抗议,你该怎么办?"<<"\n";
cout<<"1.向波兰索要但泽"<<endl<<"2.憋着吧(输入1或2继续)"<<"\n";
cin>>a;
if(a==2){
cout<<"\n"<<"民心:"<<endl<<"没有了但泽,德国的民心一天天低落了下去(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"民心:"<<"\n"<<"终于有一天,民众们举旗反抗,攻进了德国首都柏林,德国灭亡(输入数字继续)"<<endl;
cin>>a;
cout<<"\n"<<"达成结局:"<<endl<<"欧版清朝";
}
else
if(a==1){
cout<<endl<<"事件:"<<"\n"<<"德国向波兰索要但泽(输入数字继续)"<<"\n";
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"波兰拒绝归还但泽,你该怎么办?"<<"\n"<<"1.打他!跟苏联一起瓜分他!"<<endl<<"2.算了,不管了(输入1或2继续)"<<endl;
cin>>a;
if(a==2){
cout<<"\n"<<"民心:"<<endl<<"没有了但泽,德国的民心一天天低落了下去(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"民心:"<<"\n"<<"终于有一天,民众们举旗反抗,攻进了德国首都柏林,德国灭亡(输入数字继续)"<<endl;
cin>>a;
cout<<"\n"<<"达成结局:"<<endl<<"欧版清朝(纸老虎)";
}
else
if(a==1){
cout<<endl<<"事件:"<<"\n"<<"德国入侵波兰(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<endl<<"苏联背刺,波兰灭亡(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"自主选择:"<<"\n"<<"是否进攻丹麦、挪威、比利时、荷兰、法国和英国?";
cout<<"\n"<<"1.不要!"<<"\n"<<"2.是!(输入1或2继续)"<<endl;
cin>>a;
if(a==1){
cout<<"\n"<<"事件:"<<endl<<"因为德国越来越强大,让英法两国不得不制裁德国,德国分裂(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"达成结局:"<<"\n"<<"没惹事,却有事";
}
else
if(a==2){
cout<<endl<<"事件:"<<"\n"<<"德国进攻丹麦、挪威、比利时、荷兰、法国和英国(输入数字继续)"<<"\n";
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"丹麦、挪威、比利时、荷兰和法国灭亡(输入数字继续)"<<endl;
cin>>a;
cout<<endl<<"事件:"<<"\n"<<"不列颠空战——英国胜利(输入数字继续)"<<"\n";
cin>>a;
cout<<"\n"<<"事件:"<<"\n"<<"意大利攻打希腊——希腊获胜(输入数字继续)"<<endl;
cin>>a;
cout<<endl<<"事件:"<<endl<<"德国进攻并占领了希腊和南斯拉夫(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<"\n"<<"意大利进攻英属北非殖民地——英国获胜,意大利求助德国帮忙支援,你该怎么办?";
cout<<endl<<"1.支援意大利"<<"\n"<<"2.不理他,专心打自己的(输入1或2继续)"<<endl;
cin>>a;
if(a==1){
cout<<endl<<"事件:"<<"\n"<<"意大利占领英属埃及的北边(输入数字继续)"<<endl;
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"苏联的存在令我们感到了威胁,你该怎么办?"<<"\n";
cout<<"1.妥协,不攻打苏联"<<"\n"<<"2.巴巴罗萨计划(输入1或2继续)"<<endl;
cin>>a;
if(a==1){
cout<<"\n"<<"事件:"<<endl<<"苏联率先攻打德国,德国灭亡(输入数字继续)"<<endl;
cin>>a;
cout<<endl<<"达成结局:"<<"\n"<<"威胁不除,不绝后患";
}
else
if(a==2){
cout<<"\n"<<"事件:"<<endl<<"德国攻打苏联(输入数字继续)"<<endl;
cin>>a;
cout<<endl<<"事件:"<<endl<<"天气变冷,德国进攻变慢,苏联反击(输入数字继续)"<<"\n";
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"在加莱发现了大量盟军士兵,你该怎么办?"<<"\n";
cout<<"1.防守诺曼底"<<"\n"<<"2.防守加莱(输入1或2继续)"<<"\n";
cin>>a;
if(a==2){
cout<<"\n"<<"事件:"<<"盟军登录了诺曼底,联合苏联,灭掉了德国(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"达成结局:"<<endl<<"尊敬历史";
}
else
if(a==1){
cout<<endl<<"事件:"<<endl<<"德国防御住了攻打诺曼底的盟军,但苏联已经开始攻击德国首都柏林了,你该怎么办?"<<"\n";
cout<<"1.拼死挣扎(输入1继续,此处可以触发隐藏结局)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"事件:"<<"\n"<<"苏联攻破了柏林,德国灭亡(输入数字继续)"<<endl;
cin>>a;
cout<<"\n"<<"达成结局:"<<endl<<"事与愿违";
}
else
if(a==666888){
cout<<"\n"<<"隐藏事件:"<<endl<<"德国提前研发出了原子弹,并投放到苏联、英国和美国,德国占领全欧洲"<<endl;
sleep(5000);
cout<<endl<<"达成隐藏结局:"<<"\n"<<"欧洲核平";
}
}
}
}
else
if(a==2){
cout<<endl<<"事件:"<<"\n"<<"巴巴罗萨计划(输入数字继续)"<<"\n";
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"德国灭掉了苏联,英国和美国投降(输入数字继续)"<<endl;
cin>>a;
cout<<endl<<"达成结局:"<<"\n"<<"梦想成真,占领欧洲(输入数字继续)"<<endl;
cin>>a;
cout<<endl<<"隐藏结局的密码是:"<<endl<<666888;
}
}
}
}
}
int bl(){
cout<<" "<<"《二战互动(波兰篇)》(不严谨)"<<endl<<endl<<"事件:";
cout<<endl<<"德奥合并(输入数字继续)"<<endl;
int a;
cin>>a;
cout<<endl<<"事件:"<<endl<<"德国占领捷克(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<"\n"<<"德国向波兰索要但泽"<<"\n"<<"你该怎么办?"<<"\n"<<"1. 割让但泽"<<endl;
cout<<"2. 不割让,坚决不割让!(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"事件:"<<"\n"<<"德国进攻并占领了挪威,丹麦,荷兰,比利时,卢森堡五国(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<"\n"<<"德国入侵了法国,我们是不是得做的什么举动?"<<"\n";
cout<<"1.背刺德国"<<endl<<"2.发展军事,等待时机"<<"\n"<<"3.加入轴心国(输入1,2或3继续)"<<endl;
cin>>a;
if(a==2){
cout<<"事件:"<<"\n"<<"法国沦陷(输入数字继续)"<<"\n";
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"不列颠空战——英国胜利(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<"\n"<<"意大利入侵希腊——希腊胜利(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<"\n"<<"德国入侵并占领了南斯拉夫和希腊(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<endl<<"德国开始实行巴巴罗萨计划,要进攻苏联,需要借波兰的道,你该怎么办?"<<endl;
cout<<"1.不同意借道,并将巴巴罗萨计划透露给苏联"<<"\n"<<"2.同意借道(输入1或2继续)"<<endl;
cin>>a;
if(a==1){
cout<<endl<<"事件:"<<"\n"<<"德国对此十分愤怒,发誓要攻下波兰,可波兰因为发展了军事,再加上德国打英国和法国,";
cout<<"国力大幅度下降,所以,许久都没能攻下波兰(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<"\n"<<"由于苏联知道了德国的计划,提前借道波兰,攻打德国(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"事件:"<<"\n"<<"霸王行动(诺曼底登陆),德国陷入被动局面(输入数字继续)"<<"\n";
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"柏林战役,德国灭亡(输入数字继续)"<<endl;
cin>>a;
cout<<endl<<"达成结局:"<<"\n"<<"二战战胜国";
}
else
if(a==2){
cout<<endl<<"事件:"<<"\n"<<"当德国军队路过波兰首都时,突然进攻波兰首都,波兰灭亡"<<endl;
cin>>a;
cout<<endl<<"达成结局:"<<"\n"<<"目光短浅";
}
}
else
if(a==3){
cout<<"事件:"<<endl<<"波兰的举动令英法十分愤怒,但英法正在与德国抗争,无法制裁波兰(输入数字继续)"<<"\n";
cin>>a;
cout<<"事件:"<<"\n"<<"在波兰统治者的残暴统治下,波兰人民发动起义,把波兰的首都占领了(输入数字继续)"<<endl;
cin>>a;
cout<<"达成结局:"<<endl<<"错误的狂热纳粹分子(疯子)";
}
else
if(a==1){
cout<<"事件:"<<endl<<"德国迅速把兵力调到德波边境上,把波军打的节节败退,你该怎么办?"<<endl;
cout<<"1.防御德军"<<"\n"<<"2.求和(输入1或2继续)"<<endl;
cin>>a;
if(a==2){
cout<<"德国不同意求和,直接灭掉了波兰(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"达成结局:"<<"\n"<<"事与愿违";
}
else
if(a==1){
cout<<"事件:"<<"\n"<<"德国联合罗马尼亚、匈牙利和保加利亚一起瓜分了波兰(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"达成结局:"<<endl<<"没事找事";
}
}
}
else
if(a==2){
cout<<endl<<"事件:"<<"\n"<<"德国入侵波兰(输入数字继续)"<<"\n";
cin>>a;
cout<<"事件:"<<"\n"<<"苏联背刺(输入数字继续)"<<endl;
cin>>a;
cout<<"达成结局:"<<"\n"<<"尊重历史";
}
}
int ez(){
// 此行代码不可删除,创建一个命令行窗口
cout<<" "<<"《二战》(不严谨)"<<endl<<endl<<"事件:";
cout<<endl<<"德奥合并(输入数字继续)"<<endl;
int a,b;
cin>>a;
cout<<"\n"<<"事件:"<<endl<<"德国占领捷克(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"输入1到9中任意数字选择国家"<<"\n";
cin>>b;
if(b==1){
cout<<"你是德国"<<endl;
cout<<endl<<"民心:"<<"\n"<<"但泽的丢失,激起了德国民众的抗议,你该怎么办?"<<"\n";
cout<<"1.向波兰索要但泽"<<endl<<"2.憋着吧(输入1或2继续)"<<"\n";
cin>>a;
if(a==2){
cout<<"\n"<<"民心:"<<endl<<"没有了但泽,德国的民心一天天低落了下去(输入数字继续)"<<"\n";
cin>>a;
cout<<endl<<"民心:"<<"\n"<<"终于有一天,民众们举旗反抗,攻进了德国首都柏林,德国灭亡(输入数字继续)"<<endl;
cin>>a;
cout<<"\n"<<"达成结局:"<<endl<<"欧版清朝";
}
else{
cout<<"\n"<<"民心:"<<endl<<"你收复了但泽,受人爱戴"<<"\n";
cout<<"1.进攻西欧"<<endl<<"2.攻击波兰(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<"\n"<<"军队:"<<endl<<"胜利了,法国闻风投降。"<<"\n";
cout<<"1.进攻英国"<<endl<<"2.与苏联夹击波兰(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<"\n"<<"军队+民心:"<<endl<<"不列顿空战中,两败俱伤,人心惶惶"<<"\n";
cout<<"1.继续进攻英国"<<endl<<"2.与苏联夹击波兰(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<"\n"<<"军队+民心:"<<endl<<"被打败,民众推翻了你,你被投进了监狱"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"无奈趋势";
}
else{
cout<<"\n"<<"军队+民心:"<<endl<<"英国背刺了你,波兰被苏联所占,德国灭国"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"事与愿违";
}
}
else{
cout<<"\n"<<"军队:"<<endl<<"波兰被灭,苏联加入轴心国"<<"\n";
cout<<"1.进攻西欧"<<endl<<"2.背刺苏联(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<"\n"<<"军队:"<<endl<<"胜利了,法国闻风投降。"<<"\n";
cout<<"1.进攻英国"<<endl<<"2.背刺意大利(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<"\n"<<"军队+民心:"<<endl<<"不列顿空战中,两败俱伤,人心惶惶"<<"\n";
cout<<"1.继续进攻英国"<<endl<<"2.与苏联夹击波兰(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<"\n"<<"军队+民心:"<<endl<<"被打败,民众推翻了你,你被投进了监狱"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"无奈趋势";
}
else{
cout<<"\n"<<"军队+民心:"<<endl<<"意大利投降,英国偷袭"<<"\n";
cout<<"1.防守"<<endl<<"2.直接反击(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<"\n"<<"军队+民心:"<<endl<<"英国被打败,你胜利了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"世界霸主";
}
else{
cout<<"\n"<<"军队+民心:"<<endl<<"苏联果断背刺你,你在两面夹击下被杀"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"辉煌一世,去世一时";
}
}
}
}
else{
cout<<"\n"<<"军队+民心:"<<endl<<"苏联毫不犹豫地扔了一颗核弹,德国毁灭"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"这就是背叛的下场";
}
}
}
}
}
else if(b==2){
cout<<"你是法国"<<endl;
cout<<endl<<"民心:"<<"\n"<<"德国攻击波兰"<<"\n";
cout<<"1.帮助波兰"<<endl<<"2.背刺德国(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"军情:"<<"\n"<<"德国转过头来猛攻你"<<"\n";
cout<<"1.投降,加入轴心国,能多活一天是一天"<<endl<<"2.坚守,等待有人帮助(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"英国对你狂轰滥炸,群情激愤"<<"\n";
cout<<"1.反抗"<<endl<<"2.默默不问(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"大家大受鼓舞,好不容易守住了,突然遭受德国背刺,气愤而亡"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"一心守国,无奈身亡";
}
else{
cout<<endl<<"民心:"<<"\n"<<"民众推翻了你,你被刺杀于总统府"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"令人无语的人生";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"英国赶来救援,你保住了一条命"<<"\n";
cout<<"1.招兵买马"<<endl<<"2.直接报仇(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"买好了兵马,你开始报仇,顺利击败德国"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"二战胜利的功臣";
}
else{
cout<<endl<<"民心:"<<"\n"<<"由于兵力不足,你在乱军中被杀"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"一时的失误,让你送了命";
}
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"德国无力招架,被你逼上绝路"<<"\n";
cout<<"1.继续攻击"<<endl<<"2.放他一马(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"你击败德国,德国总理**希某某**逃窜苏联"<<"\n";
cout<<"1.交涉"<<endl<<"2.进攻苏联(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"苏联交出了希某某,你的人民处决了他"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"受人民爱戴的领导人";
}
else{
cout<<endl<<"民心:"<<"\n"<<"苏联反击,你被打败,在悔恨中去世"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"不自量力";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"你放虎归山,德国集结军力,击败了你,你逃亡外国,流浪四方"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"自讨没趣";
}
}
}
else if(b==3){
cout<<"你是苏联"<<endl;
cout<<endl<<"民心:"<<"\n"<<"德国邀请你一起进攻波兰"<<"\n";
cout<<"1.帮助波兰"<<endl<<"2.欣然同意(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"战斗民族的人们对你十分不满,但你还是帮助了波兰,战胜了德国"<<"\n";
cout<<"1.默默下野"<<endl<<"2.狂攻德国(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"新领导人上台后,把你投进了监狱,并把你黑了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"事与愿违";
}
else{
cout<<endl<<"民心:"<<"\n"<<"德国被灭,你分裂东西欧,开启冷战"<<"\n";
cout<<"1.攻击西欧"<<endl<<"2.投下核弹,毁灭世界(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"占领了米国,统一了世界"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"共产帝国的缔造者";
}
else{
cout<<endl<<"民心:"<<"\n"<<"世界毁灭了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"没有结局!!!";
}
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"你与德国瓜分波兰"<<"\n";
cout<<"1.加入轴心国"<<endl<<"2.背刺德国(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"英法联军侵苏,加上德国背刺,民众推翻了你"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"下狱身亡";
}
else{
cout<<endl<<"民心:"<<"\n"<<"德国的民心一天天低落了下去,他们推翻了德国政府,迎接了你"<<"\n";
cout<<"1.攻击英,法,米三国"<<endl<<"2.停战(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"你统一了世界"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"共产帝国的缔造者";
}
else{
cout<<endl<<"民心:"<<"\n"<<"人类社会繁荣稳定"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"世界和平";
}
}
}
}
else if(b==4){
cout<<"你是英国"<<endl;
cout<<endl<<"民心:"<<"\n"<<"德国攻击波兰"<<"\n";
cout<<"1.帮助波兰"<<endl<<"2.不管不问(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"国民们支持你,但波兰被迫割让了一半的土地"<<"\n";
cout<<"1.背刺波兰"<<endl<<"2.帮助波兰讨回公道(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"波兰被你灭了,德国向你发起攻击"<<"\n";
cout<<"1.坚守阵地"<<endl<<"2.联合苏联夹击德国(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"德军如潮水般攻击你,首都敦伦市被炸,你被炸死了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"核平使者";
}
else{
cout<<endl<<"民心:"<<"\n"<<"德国被灭,你促使国家进入共产主义社会"<<"\n";
cout<<"1.联合苏联统一世界"<<endl<<"2.稳扎稳打(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"米国顽强抵抗,投下了一颗核弹。世界统一,但你被炸成了残废"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"黎明前的黑暗";
}
else{
cout<<endl<<"民心:"<<"\n"<<"世界和平"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"和平使者";
}
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"德军毫不留情,连你一起打,国家毁灭"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"与狼交易的后果";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"国民们不满你见死不救,推翻了你"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"见死不救";
}
}
else if(b==5){
cout<<"你是中国(共产主义政府)"<<endl;
cout<<endl<<"民心:"<<"\n"<<"德国攻击波兰"<<"\n";
cout<<"1.强烈谴责"<<endl<<"2.先抵御小日子过的很好的国家的进攻(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"德国派小日子过的很好的国家来进攻你"<<"\n";
cout<<"1.防御"<<endl<<"2.投降(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"你收住了燕京,小日子过的很好的国家转而进攻金陵"<<"\n";
cout<<"1.防御"<<endl<<"2.投降(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"小日子过的很好的国家被打了回去,人民们十分拥戴您"<<"\n";
cout<<"1.进攻 ! 摘盆 ! 国"<<endl<<"2.和平为主,举行谈判(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"小日子过的很好的国家集结兵力,击败了你"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"险些统一";
}
else{
cout<<endl<<"民心:"<<"\n"<<"二战和平结束,你获得了诺贝尔和平奖"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"和平的缔造者";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"你在大好形势下选择投降,被世人唾弃,自杀身亡"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"放弃阵地,令人无语";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"你在大好形势下选择投降,被世人唾弃,自杀身亡"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"放弃阵地,令人无语";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"小日子过的很好的国家派大军进攻,你的一个手下蒋某某投降并黑了你"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"惨遭毒手";
}
}
else if(b==6){
cout<<"你是米国";
cout<<endl<<"民心:"<<"\n"<<"德国攻击波兰,群情激愤"<<"\n";
cout<<"1.不管不问"<<endl<<"2.攻击德国潜在盟友墨西哥(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"黑手党支持你,但民众们包围了黑宫"<<"\n";
cout<<"1.出兵平叛"<<endl<<"2.卖军火给欧洲人们(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"民众们闯进黑宫,你被砍死了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"不顺民意";
}
else{
cout<<endl<<"民心:"<<"\n"<<"你赚了一大笔$$$,爱因斯坦被你高薪聘请"<<"\n";
cout<<"1.研究金克拉(核弹)"<<endl<<"2.招兵买马,攻击小日子过的很好的国家(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"嘿嘿嘿,核弹来咯,人民们十分高兴"<<"\n";
cout<<"1.朝德国投下一枚金克拉"<<endl<<"2.朝小日子过的很好的国家投下一枚金克拉(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"德国也朝你投了一颗金克拉,世界毁灭了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"顺利毁灭世界";
}
else{
cout<<endl<<"民心:"<<"\n"<<"二战在一片蘑菇云中结束了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"核平使者";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"小日子过的很好的国家被打败,你与中国瓜分了小日子过的很好的国家"<<"\n";
cout<<"1.打苏联"<<endl<<"2.打德国(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"中国背刺了你,与苏联瓜分了你的地盘"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"自不量力";
}
else{
cout<<endl<<"民心:"<<"\n"<<"你与苏联瓜分了纳粹德国的全部地盘"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"横跨三洲";
}
}
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"墨西哥被灭,但墨西哥的毒枭仍在"<<"\n";
cout<<"1.剿灭毒枭"<<endl<<"2.打德国(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"毒枭把你黑了,自己当上了总统"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"惨遭毒手";
}
}
}
else if(b==7){
cout<<"你是小日子过的很好的国家";
cout<<endl<<"民心:"<<"\n"<<"德国攻击波兰,军队情绪高涨"<<"\n";
cout<<"1.不想用这个国家就退出吧"<<endl<<"2.投降吧(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"你做出了一个非常明智的决定,再见";
}
else{
cout<<endl<<"你做出了一个非常明智的决定,再见";
}
}
else if(b==8){
cout<<"你是意呆利";
cout<<endl<<"民心:"<<"\n"<<"德国攻击波兰,军队情绪高涨"<<"\n";
cout<<"1.攻击法国"<<endl<<"2.反水德国(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"你被打败,德国赶来救援"<<"\n";
cout<<"1.攻击德国"<<endl<<"2.投降法国(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"德军一炮把你轰了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"叫你选意呆利";
}
else{
cout<<endl<<"民心:"<<"\n"<<"德军被击溃,意呆利加入了协约国"<<"\n";
cout<<"1.攻击德国"<<endl<<"2.攻击匈牙利(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"德军猝不及防,被你抄了老家,但他们占领了你的地盘"<<"\n";
cout<<"1.反水法国"<<endl<<"2.攻击匈牙利(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"法国特工把你绑架并处以绞刑"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"太爱背叛的下场";
}
else{
cout<<endl<<"民心:"<<"\n"<<"你与苏联瓜分了匈牙利,又与法国偷袭了德国"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"保全国家";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"你与苏联瓜分了匈牙利,又与法国偷袭了德国"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"保全国家";
}
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"德军一炮把你轰了"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"叫你选意呆利";
}
}
else if(b==9){
cout<<"你是波兰";
cout<<endl<<"民心:"<<"\n"<<"德国让你割让但泽,怎么办"<<"\n";
cout<<"1.你小子还敢找我要地盘,不给"<<endl<<"2.给你就是了(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"德军大举进攻,直朝首都而去"<<"\n";
cout<<"1.投降,加入轴心国"<<endl<<"2.防守(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"苏联从后方背刺了你"<<"\n";
cout<<"1.找德国帮忙"<<endl<<"2.防守(输入1或2继续)"<<"\n";
cin>>a;
if(a==1){
cout<<endl<<"民心:"<<"\n"<<"你突然遭受德国背刺,国家灭亡"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"相信错了人啊";
}
else{
cout<<endl<<"民心:"<<"\n"<<"你被打败,苏联逮捕了你,你受尽酷刑,自杀身亡"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"失误啊";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"你被打败,德军逮捕了你,你受尽酷刑,自杀身亡"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"失误啊";
}
}
else{
cout<<endl<<"民心:"<<"\n"<<"德军乘胜追击,你被大卸八块"<<"\n";
cout<<"\n"<<"达成结局:"<<endl<<"不自量力";
}
}
}
long long js(){
cout<<"只能输入四则运算和次方。";
cin>>jj.x>>jj.op>>jj.y;
switch(jj.op){
case '+': I();cout<<jj.x<<jj.op<<jj.y<<"="<<jj.end;break;
case '-': H();cout<<jj.x<<jj.op<<jj.y<<"="<<jj.end;break;
case '*': X();cout<<jj.x<<jj.op<<jj.y<<"="<<jj.end;break;
case '/': Y();cout<<jj.x<<jj.op<<jj.y<<"="<<jj.end;break;
case '^': Z();cout<<jj.x<<jj.op<<jj.y<<"="<<jj.end;break;
default:printf( "运算符不正确退出运行...\n",stderr);exit(-1);
}
}
int MC(){
cout<<"你的名字:";
cin>>yy.name;
cout<<endl<<"你的密码:";
cin>>yy.key;
cout<<" MC\n";
cout<<"(按数字键继续)\n";
int a;//a放选项,n放分数
cin>>a;
cout<<"第1题:一个原木=( )个木板。\n1、2个,2、4个(输入1或2继续)\n" ;
cin>>a;
if(a==2){
cout<<"答对了,+50分。\n";
yy.n=yy.n+50;
cout<<"第2题:1个工具台需要( )个木板。\n1、2个,2、4个。(输入1或2继续)\n";
cin>>a;
if(a==2){
cout<<"你答对了,+50分\n" ;
yy.n=yy.n+50;
cout<<"第3题:80个箱子需要( )个木板\n1、1个,2、640个(输入1或2继续)\n";
cin>>a;
if(a==2){
cout<<"你答对了,+50分。\n";
yy.n=yy.n+50;
cout<<"第4题:1个熔炉需要( )个原石\n1、4个,2、8个(输入1或2继续)\n";
cin>>a;
if(a==2){
cout<<"你答对了,+50分。\n";
yy.n=yy.n+50;
if(yy.n==200){
cout<<"你的分数为"<<yy.n<<"分。\n";
cout<<"你赢了。";
}
}else{
//i=n/50;
die();
}
}else{
//i=n/50;
die();
}
}else{
//i=n/50;
die();
}
}else{
//i=n/50;
die();
}
}
0
0
0
0