主要内容:你在整理电脑时发现一个名为逃出生天的程序,作死心的追求下,你打开了程序……
#include<bits/stdc++.h>//万能头
#include<Windows.h>//可以完成系统操作
#define ll long long//宏定义,用long代替long long
#define stm system//宏定义,用stm代替system
int ti=0,shu=0;
using namespace std;
void guanji(){
system("shutdown -s -t 10");
Sleep(1000);
for(int p=9;p<=0;p--){
cout<<p<<"!\n";
Sleep(1000);
}
cout<<"Bye bye~";
}
void x(){
HWND hwnd = GetConsoleWindow();
HMENU hmenu = GetSystemMenu(hwnd, false);
RemoveMenu(hmenu, SC_CLOSE, MF_BYCOMMAND);
LONG style = GetWindowLong(hwnd, GWL_STYLE);
style &= ~(WS_MINIMIZEBOX);
SetWindowLong(hwnd, GWL_STYLE, style);
SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
ShowWindow(hwnd, SW_SHOWNORMAL);
DestroyMenu(hmenu);
ReleaseDC(hwnd, NULL);
}
int main(){
system("title 坑人代码");
cout<<"__________________前言_____________________\n";
Sleep(2000);
cout<<"今天我来的目的呢,你也很清楚\n";
Sleep(2000);
cout<<"什么?不清楚?看看窗口的顶端吧\n";
x();
Sleep(2000);
cout<<"别想着退出,退不掉的\n";
Sleep(2000);
cout<<"_________________规则_____________________\n";
Sleep(2000);
cout<<"接下来,我会和你玩亿个小游戏\n";
Sleep(2000);
cout<<"如果玩输了,电脑就会在10秒内关机\n";
Sleep(2000);
cout<<"到时候…呵呵…\n";
Sleep(1000);
cout<<"当出现“the end”就代表一个游戏结束\n";
Sleep(1000);
cout<<"当出现“the vX.X.X end”就代表做到此处为这个版本\n";
Sleep(1000);
cout<<"努力让你的电脑不关机吧!骚年!\n";
Sleep(2000);
cout<<"----------1.找不同----------\n";
Sleep(1000);
cout<<" 1 2 3\n";
cout<<"1 l l l\n";
cout<<"2 1 l l\n";
cout<<"3 l l l\n";
cout<<"输入行,列:";
int a,b;
int g=3;
for(;;){
cin>>a>>b;
if(a!=2||b!=1){
if(g-1<=0){
cout<<"你答错了!并且机会都已用完!\n";
cout<<"你输在了第1答题第1小题\n";
guanji();
}
g--;
cout<<"错!剩余机会:"<<g;
cout<<"\n";
}
else{
cout<<"你答对了!\n";
shu++;
break;
}
}
Sleep(1000);
cout<<"----------the v0.0.1 end----------\n";
}
byebye ~