zoukankan      html  css  js  c++  java
  • 读心球游戏


    读心球游戏

    图片

     #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
     int i,j=0,o,u;
     char a[1000]={'A','B','C','D','E','F','G','H','$','I','J','K','@','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','$','@','!','#','$','%','^','&','*','?','/','|','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','@','!','*','%','@','&','|','M','N','O','P','Q','R'};
     char b[26]={'$','@','!','#','$','%','^','&','*','?','/','|','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
     cout<<"游戏规则:1、任意選擇一個兩位數 (或者說,從10 ~ 99之間任意選擇一個数),把這個數的十位與個位相加,再把任意選擇的数减去這個和."<<endl;
     cout<<"例如:你選的数是23,然後 2+3=5,然後 23-5=18"<<endl;
     cout<<"2、在圖表中找出與最後得出的數所相應的圖形,並把這個圖形牢記心中,然後在水晶球上點一下。";
     cout<<"你會發現,水晶球所顯示出來的圖形就是你剛剛心裡記下的那個圖形."<<endl;
     cout<<"3、把這個讀心球的網址覆製給10個或更多的朋友,也許你就會明白一切,因為水晶球會讓你神奇的感應到它是如何来讀你的心!"<<endl<<endl<<endl;
     do
     {
      if(j>0)
      {
       cout<<"神奇吧!!!    1:TRY AGAIN   2:back"<<endl;
       cin>>o;
       if(o==2)
       {
        break;
       }
      }
      for(i=0;i<100;i++)
      {
       if(i%9==0)
       {
        cout<<"     "<<i<<":"<<b[j];
       }
       else
       {
        cout<<"     "<<i<<":"<<a[i+j];
       }
       if((i+1)%10==0)
       {
        cout<<endl<<endl;
       }
      }
      j++;
      cout<<"需要电脑读出你的想法吗?  1:yes  2:no"<<endl;
      cin>>u;
      if(u=1)
      {
       cout<<"----------------------------------------------------------------------------"<<"亲:  "<<b[j-1]<<"   是否就是你的心中所想呢!!!"<<endl;
      }
      else
       break;
     }
     while(j<=100);
     return 0;
    }

  • 相关阅读:
    Hadoop整理二(Hadoop分布式存储系统HDFS)
    Hadoop整理一(初识Hadoop)
    Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match
    Oracle登录
    神经网络一(用tensorflow搭建简单的神经网络并可视化)
    Qt程序启动画面播放(gif与swf两种动画格式)
    VS2008+GDI实现多幅图像的GIF动画制作
    C++读取特定路径下文件目录及文件名称
    求助——数据处理问题
    VC6.0读取Excel文件数据
  • 原文地址:https://www.cnblogs.com/zzkgis/p/3742611.html
Copyright © 2011-2022 走看看