小游戏

· · 个人记录

#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
#pragma comment(linker,"/subsystem:windows/entry:mainCRTStartup")
using namespace std;
void r(int asdf){
    cout<<endl;
cout<<endl; 
POINT p;
int x,y,q=1;
GetCursorPos(&p);
x = p.x;
y = p.y;
string a[6]={"你出不来的!","SB","你2B","有本事你出来呀?","重启啊哈哈哈哈哈哈哈哈哈哈哈……","细狗。菜,就多练。"}; 
int i=1,l=0;
while(q)
{
GetCursorPos(&p);
if(p.x!=x || p.y!=y)
{
SetCursorPos(x,y);
i++; 
}
if(kbhit()!=0)
{
char ch = getch();
if(ch=='q' || ch=='Q')
q = 0;
else
cout<<"SBSBSB"<<endl; 
}
Sleep(0);
if(i%30==0)
{
cout<<a[l]<<endl;
l++;
if(l==6)
l-=6; 
} 
} 
}
int main(){
    cout<<"你只要启动,直到死你都无法退出"<<endl;
    cout<<"是否开始???如开始,输入1"<<endl;
    cout<<endl<<endl;
    char k;
    cin>>k;
    if(k!='1'){
        cout<<"你不想进去呀!!!886!!!";
        return 0;
    } 
    for(int i=1;i<=1000000;i++){
        for(int j=1;j<=1000000;j++){
            for(int k=1;i<=1000000;k++){
                for(int l=1;j<=1000000;l++){
                    for(int m=1;m<=1000000;m++){
                        for(int n=1;n<=1000000;n++){
                            Sleep(10);
                            for(int o=1;o<=1000000;o++){
                                r(3);   
                            }
                        }
                    }
                }
            }
        }
    }
    return 0;
}