是or不是游戏

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#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 @   fushuxuan1  阅读(5)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示