新手守护
#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("读心术3");
}
int main(){
cout<<"\n\t欢迎来到读心术3!";
Sleep(3000);
system("cls");
cout<<"\n\t我是忧忧";
Sleep(3000);
system("cls");
cout<<"\n\t感谢你的游玩";
Sleep(3000);
system("cls");
int cnt=0;
cout<<"\n\t想一个多位数(五位数,不可相同)";
Sleep(3000);
system("cls");
cout<<"\n\t把数打乱";
Sleep(3000);
system("cls");
cout<<"\n\t两个数相减";
cout<<"\n\t把得数中一个数挑出来,记住";
cout<<"\n\t把剩下的数输入进来(空格间格)";
int a,b,c,e,m,n,j,p,v;
cin>>a>>b>>c>>e;
m=a+b+c+e;
Sleep(1000);
system("cls");
cout<<"\n\t把"<<m<<"输入进来(个位和十位空格格开)";
cin>>n>>j;
p=n+j;
if(p==9){
v=9;
}
if(p!=9){
v=9-p;
}
Sleep(3000);
system("cls");
cout<<"\n\t你挑出的数是:"<<v;
cout<<"\n\t感谢支持!!!";
return 0;
}