是or不是游戏

#include <bits/stdc++.h>
#include <windows.h>
int main(int argc, char** argv){
	int a=10;
	 
	if(MessageBox(NULL,"你在心中想个数字,我来猜","是or不是游戏",MB_OK)==IDOK){
		if(MessageBox(NULL,"是5及以内吗","是or不是游戏",MB_YESNO)==IDYES){
			if(MessageBox(NULL,"是'1'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			}else if(MessageBox(NULL,"是'2'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			}else if(MessageBox(NULL,"是'3'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			}else if(MessageBox(NULL,"是'4'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			}else if(MessageBox(NULL,"是'5'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			}   
		}else{
			if(MessageBox(NULL,"是'6'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			}
			else if(MessageBox(NULL,"是'7'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			} 
			else if(MessageBox(NULL,"是'8'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			} 
			else if(MessageBox(NULL,"是'9'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			}else if(MessageBox(NULL,"是'10'吗","是or不是游戏",MB_YESNO)==IDYES){
				return 0;
			}  			
		}  
	}
	return 0;
}

  

posted @ 2024-05-04 10:01  fushuxuan1  阅读(14)  评论(0)    收藏  举报