新手守护
#include<iostream>
#include<fstream>
#include<windows.h>
#include<cstdio>
#include<cstring>
#include<stdio.h>
#include<conio.h>
#include<time.h>
#include<vector>
#include<sstream>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0) //头文件是借用XACRAFT的
using namespace std;
void console(){
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO bInfo;
GetConsoleScreenBufferInfo(hOut, &bInfo );
SetConsoleTitle("读心术4");
}
int main(){
cout<<"\n\t欢迎来到读心术4!";
Sleep(3000);
system("cls");
cout<<"\n\t我是忧忧";
Sleep(3000);
system("cls");
cout<<"\n\t感谢你的游玩";
Sleep(3000);
system("cls");
int cnt=0;
cout<<"\n\t在1到12中想一个数";
Sleep(3000);
system("cls");
cout<<"\n\t跟着^相加,^每走一格就加1(第一格不算,从到11开始算),直到加到12就按1,否则按0";
Sleep(3000);
system("cls");
bool a,s,d,f,g,h,j,k,l,z,x,c;
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>a;
system("cls");
if(a==1){
cout<<"\n\t你想的数是:"<<12;
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>s;
system("cls");
if(s==1){
cout<<"\n\t你想的数是:11";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>d;
system("cls");
if(d==1){
cout<<"\n\t你想的数是:10";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>f;
system("cls");
if(s==1){
cout<<"\n\t你想的数是:9";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>g;
system("cls");
if(g==1){
cout<<"\n\t你想的数是:8";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>h;
system("cls");
if(h==1){
cout<<"\n\t你想的数是:7";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>j;
system("cls");
if(j==1){
cout<<"\n\t你想的数是:6";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>k;
system("cls");
if(k==1){
cout<<"\n\t你想的数是:5";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>l;
system("cls");
if(l==1){
cout<<"\n\t你想的数是:4";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>z;
system("cls");
if(l==1){
cout<<"\n\t你想的数是:3";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>x;
system("cls");
if(x==1){
cout<<"\n\t你想的数是:2";
}else{
cout<<"\n\t1 2 3 4 5 6 7 8 9 10 11 12";
cout<<"\n ^";
cin>>c;
system("cls");
if(c==1){
cout<<"\n\t你想的数是:1";
}else{
cout<<"\n\t你什么都没选!";
}
}
}
}
}
}
}
}
}
}
}
}
cout<<"\n\t感谢支持!!!";
return 0;
}