返回列表 發帖

賽馬程式 (二)

請讓每一匹賽馬能動起來
本帖隱藏的內容需要回復才可以瀏覽

  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<time.h>  
  4. using namespace std;
  5. int main()
  6. {
  7.     int a1=0,a2=0,a3=0,a4=0,random=0;
  8.     srand(time(NULL));
  9.     cout<<"「好事成雙」賽馬場"<<endl;
  10.     cout<<"-------------------------------------------------------------[終點"<<endl;
  11.     cout<<"●"<<endl;
  12.     cout<<"▼"<<endl;
  13.     cout<<"■"<<endl;
  14.     cout<<"★"<<endl;
  15.     while(a1!=75&&a2!=75&&a3!=75&&a4!=75)
  16.     {
  17.        random=rand()%4;
  18.      if(random==0) {
  19.            a1++;
  20.         }  
  21.         else if(random==1)
  22.         {
  23.            a2++;
  24.         }
  25.         else if(random==2)
  26.         {
  27.            a3++;
  28.         }
  29.         else if(random==3)
  30.         {
  31.            a4++;
  32.         }
  33.          cout<<"「好事成雙」賽馬場"<<endl;
  34.          cout<<"-------------------------------------------------------------[終點"<<endl;
  35.         for(int i=1; i<=a1; i++)
  36.         {
  37.            cout<<" ";
  38.         }   
  39.         cout<<"◆"<<endl;
  40.         
  41.         for(int i=1; i<=a2; i++)
  42.         {
  43.            cout<<" ";
  44.         }   
  45.         cout<<"★"<<endl;
  46.         
  47.          for(int i=1; i<=a3; i++) {
  48.            cout<<" ";
  49.         }   
  50.         cout<<"▲"<<endl;
  51.         
  52.          for(int i=1; i<=a4; i++) {
  53.            cout<<" ";
  54.         }   
  55.         cout<<"●"<<endl;      
  56.         system("cls");
  57.     }   
  58.     system("pause");
  59.     return 0;
  60.       
  61. }
複製代碼

TOP

  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <time.h>
  4. using namespace std;
  5. int main()
  6. {         
  7.     srand(time(NULL));
  8.     int horse1,horse2,horse3,horse4=0;   
  9.     int random;         
  10.     while(true)
  11.     {      
  12.       random=rand()%4;
  13.       if(random==0)
  14.         {
  15.            horse1++;
  16.         }  
  17.         else if(random==1)
  18.         {
  19.            horse2++;
  20.         }
  21.         else if(random==2)
  22.         {
  23.            horse3++;
  24.         }
  25.         else if(random==3)
  26.         {
  27.            horse4++;
  28.         }
  29.     cout<<"「好事成雙」賽馬場"<<endl;
  30.     cout<<"---------------------------------------------------------------------------|終點"<<endl;
  31.     cout<<"★"<<endl;
  32.     cout<<"▲"<<endl;
  33.     cout<<"☆"<<endl;
  34.     cout<<"◆"<<endl;
  35.     while(horse1!=75 || horse2!=75 || horse3!=75 || horse4!=75)           
  36.     {         
  37.         for(int i=0;i<=horse1;i++)
  38.            {
  39.            cout<<" ";   
  40.            }   
  41.          cout<<"★"<<endl;
  42.         for(int i=0;i<=horse2;i++)
  43.            {
  44.            cout<<" ";   
  45.            }   
  46.          cout<<"▲"<<endl;
  47.         for(int i=0;i<=horse3;i++)
  48.            {
  49.            cout<<" ";   
  50.            }   
  51.          cout<<"☆"<<endl;
  52.         for(int i=0;i<=horse4;i++)
  53.            {
  54.            cout<<" ";   
  55.            }   
  56.          cout<<"◆"<<endl;
  57.      }
  58.    }
  59.     system("pause");
  60.     return 0;        
  61. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int h1=0;
  7.     int h2=0;
  8.     int h3=0;
  9.     int h4=0;
  10.     int random=0;
  11.     int round=1;
  12.     srand(time(NULL));
  13.     while(true)
  14.     {
  15.     cout<<"第"<<round<<"局"<<endl;
  16.     cout<<"「好事成雙」賽馬場"<<endl;
  17.     cout<<"|-------------------------------------------------------------------------|終點"<<endl;                                                                        
  18.     cout<<"◆"<<endl;
  19.     cout<<"★"<<endl;
  20.     cout<<"▲"<<endl;
  21.     cout<<"●"<<endl;
  22.     system("pause");
  23.     while(h1!=75&&h2!=75&&h3!=75&&h4!=75)
  24.     {
  25.         random=rand()%4;
  26.         if(random==0)
  27.         {
  28.             h1++;
  29.         }
  30.         if(random==1)
  31.         {
  32.             h2++;
  33.         }
  34.         if(random==2)
  35.         {
  36.             h3++;
  37.         }
  38.         if(random==3)
  39.         {
  40.             h4++;
  41.         }
  42.         cout<<"比賽進行中"<<endl;
  43.         cout<<"|-------------------------------------------------------------------------|終點"<<endl;
  44.         for(int i=0;i<=h1;i++)
  45.         {
  46.                 cout<<" ";
  47.         }
  48.         cout<<"◆"<<endl;
  49.         for(int i=0;i<=h2;i++)
  50.         {
  51.                 cout<<" ";
  52.         }
  53.         cout<<"★"<<endl;
  54.         for(int i=0;i<=h3;i++)
  55.         {
  56.                 cout<<" ";
  57.         }
  58.         cout<<"▲"<<endl;
  59.         for(int i=0;i<=h4;i++)
  60.         {
  61.                 cout<<" ";
  62.         }
  63.         cout<<"●"<<endl;
  64.         system("cls");
  65.     }
  66.     round++;
  67.     system("cls");
  68.     cout<<"比賽結束! 由";
  69.     if(h1==75)
  70.     {
  71.               cout<<"◆搶先得馳"<<endl;
  72.     }
  73.     if(h2==75)
  74.     {
  75.               cout<<"★搶先得馳"<<endl;
  76.     }
  77.     if(h3==75)
  78.     {
  79.               cout<<"▲搶先得馳"<<endl;
  80.     }
  81.     if(h4==75)
  82.     {
  83.               cout<<"●搶先得馳"<<endl;
  84.     }
  85.     }
  86.     system("pause");        
  87.     return 0;
  88. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<time.h>
  4. using namespace std;
  5. int main()
  6. {   
  7.     int h1=0,h2=0,h3=0,h4=0;  
  8.     srand(time(NULL));
  9.     int random;
  10.     while(h1!=75 && h2!=75 && h3!=75 && h4!=75)
  11.     {
  12.         random=rand()%4;
  13.         if(random==0)
  14.         {
  15.             h1++;
  16.         }
  17.         else if(random==1)
  18.         {
  19.             h2++;
  20.         }
  21.         else if(random==2)
  22.         {
  23.             h3++;         
  24.         }
  25.         else if(random==3)
  26.         {
  27.             h4++;
  28.         }
  29.         cout<<"「好事成雙」賽馬場"<< endl;
  30.         cout<<"---------------------------------------------------------------------------|終點"<<endl;
  31.         for(int i=1;i<=h1;i++)
  32.         {
  33.             cout<<" ";
  34.         }
  35.         cout<<"◆"<<endl;
  36.         for(int i=1;i<=h1;i++)
  37.         {
  38.             cout<<" ";
  39.         }
  40.         cout<<"★"<<endl;
  41.         for(int i=1;i<=h1;i++)
  42.         {
  43.             cout<<" ";
  44.         }
  45.         cout<<"▲"<<endl;
  46.         for(int i=1;i<=h1;i++)
  47.         {
  48.             cout<<" ";
  49.         }
  50.         cout<<"●"<<endl;
  51.         system("cls");
  52.         
  53.     }
  54.     system("pause");
  55.     return 0;
  56. }
複製代碼

TOP

  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <time.h>
  4. using namespace std;
  5. int main()
  6. {     
  7.     int h1=0,h2=0,h3=0,h4=0;
  8.     srand(time(NULL));
  9.     int random=0;
  10.     cout<<"「賽馬場」"<<endl;
  11.     cout<<"|--------------------------------------------------------------------------|終點"<<endl;
  12.     cout<<"0"<<endl;
  13.     cout<<"1"<<endl;
  14.     cout<<"2"<<endl;
  15.     cout<<"3"<<endl;
  16.     while(houres1!=75 && houres2!=75 && houres3!=75 && houres4!=75)
  17.     { random=rand()%4;
  18.        if(random==0)
  19.        {  houres1++;      
  20.        }
  21.        else if(random==1)
  22.        { houres2++;      
  23.        }
  24.        else if(random==2)
  25.        {  houres3++;
  26.        }
  27.        else if(random==3)
  28.        {  houres4++;
  29.        }
  30.        cout<<"比賽開始"<<endl;
  31.        cout<<"|----------------------------------------------------------------------------|終點"<<endl;
  32.        for(int i=1; i<=h1; i++)
  33.        {
  34.            cout<<" ";
  35.         }   
  36.         cout<<"2"<<endl;
  37.          for(int i=1; i<=h2; i++)
  38.        {
  39.            cout<<" ";
  40.         }   
  41.         cout<<"3"<<endl;
  42.          for(int i=1; i<=h3; i++)
  43.        {
  44.            cout<<" ";
  45.         }   
  46.         cout<<"4"<<endl;
  47.          for(int i=1; i<=h4; i++)
  48.        {
  49.            cout<<" ";
  50.         }   
  51.         cout<<"3"<<endl;
  52.        system("cls");
  53.          
  54.     }
  55.     system("pause");
  56.     return 0;
  57. }
複製代碼

TOP

本帖最後由 戴嘉禾 於 2018-5-8 22:38 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<time.h>
  4. using namespace std;
  5. int main()
  6. {
  7. re:
  8. while(true)       
  9. {
  10. int horse1=0,horse2=0,horse3=0,horse4=0;
  11. int random=0,num=0,num1=0,num2=0,num3=0;
  12. srand (time(NULL));
  13. system("cls");
  14. cout<<"☆★☆[嘉禾豬]賽馬場☆★☆"<<endl;
  15. cout<<"========================================================|終點"<<endl;
  16. cout<<"◆"<<endl;
  17. cout<<"★"<<endl;
  18. cout<<"☆"<<endl;
  19. cout<<"●"<<endl;
  20. cout<<"=============================================================="<<endl;
  21. cout<<"  ★☆★  遊戲規則  ★☆★  "<<endl;
  22. cout<<"1.下注正確將會獲得五倍的錢!"<<endl;
  23. cout<<"2.下注錯誤將會失去三倍的錢!"<<endl;
  24. cout<<"請下注 => 代碼和下注金額:100元~50000000元)(1)◆ (2)★ (3)☆ (4)●"<<endl;
  25. cout<<"代碼:";
  26. cin>>num;  
  27. if(num<1||num>4)
  28. {
  29. cout<<"代碼錯誤!"<<endl;
  30. system("pause");
  31. goto re;
  32. }
  33. cout<<"下注金額:";
  34. cin>>num1;

  35. if(num1<100||num1>50000000)
  36. {
  37. cout<<"金額錯誤!"<<endl;
  38. system("pause");
  39. goto re;
  40. }     
  41. cout<<"是否要反悔?  (1)要 (2)不要"<<endl;         
  42. cin>>num3;
  43. if(num3==1)
  44. {
  45. goto re;
  46. }
  47. else if(num3==2)
  48. {
  49. goto re5;
  50. }
  51.          re5:
  52.          system("pause");
  53.          system("cls");
  54.          while(horse1!=75||horse2!=75||horse3!=75||horse4!=75)
  55.      {
  56.          random=rand()%4;
  57.      if(random==0)
  58.      {
  59.          horse1++;
  60.      }
  61.          else if(random==1)
  62.      {
  63.          horse2++;
  64.      }
  65.          else if(random==2)
  66.      {
  67.          horse3++;
  68.      }
  69.          else if(random==3)
  70.          {
  71.          horse4++;
  72.      }
  73.          cout<<"比賽進行中"<<endl;
  74.          cout<<"========================================================|終點"<<endl;
  75.          for(int i=1;i<horse1;i++)
  76.      {
  77.      cout<<" ";                     
  78.      }cout<<"◆"<<endl;
  79.      for(int i=1;i<horse2;i++)
  80.      {
  81.      cout<<" ";                     
  82.      }cout<<"★"<<endl;
  83.      for(int i=1;i<horse3;i++)
  84.      {
  85.      cout<<" ";                     
  86.      }cout<<"☆"<<endl;     
  87.      for(int i=1;i<horse4;i++)
  88.      {
  89.      cout<<" ";                     
  90.      }cout<<"●"<<endl;   
  91.      system("cls");
  92.          if(horse1==60)
  93.          {         
  94.          cout<<"比賽結束"<<endl;
  95.          cout<<"==========================================================|終點"<<endl;
  96.          for(int i=1;i<horse1;i++)
  97.          {
  98.          cout<<" ";
  99.      }
  100.          cout<<"◆"<<endl;
  101.          for(int i=1;i<horse2;i++)
  102.          {
  103.          cout<<" ";
  104.      }
  105.          cout<<"★"<<endl;
  106.          for(int i=1;i<horse3;i++)
  107.          {
  108.          cout<<" ";
  109.      }
  110.          cout<<"☆"<<endl;
  111.          for(int i=1;i<horse4;i++)
  112.          {
  113.          cout<<" ";
  114.      }
  115.          cout<<"●"<<endl;
  116.          cout<<"==========================================================|===="<<endl;
  117.          cout<<"你輸入的代碼:("<<num<<")"<<endl;
  118.          cout<<"你下注了"<<num1<<"元"<<endl;
  119.          cout<<"(1)◆贏了!"<<endl;
  120.          if(num==1)
  121.          {
  122.          cout<<"恭喜你!你獲得了"<<num1*5<<"元"<<endl;
  123.          }
  124.          else if(num==2||num==3||num==4)
  125.          {
  126.          cout<<"真可惜!你失去了"<<num1*3<<"元"<<endl;
  127.          }
  128.          re1:
  129.          cout<<"要再玩一次嗎?  (1)要 (2)不要"<<endl;
  130.          cin>>num2;
  131.          if(num2==2)
  132.          {
  133.          system("cls");
  134.          cout<<"謝謝光臨!再見!"<<endl;
  135.          }
  136.          else if(num2==1)
  137.          {
  138.          break;
  139.          }
  140.          else if(num2<1||num2>2)
  141.          {
  142.          cout<<"輸入錯誤"<<endl;
  143.          goto re1;
  144.          }
  145.          system("pause");
  146.          if(num2==1)
  147.          {
  148.          continue;
  149.          }
  150.          else
  151.          {
  152.          break;
  153.          }
  154.          }
  155.          if(horse2==60)
  156.          {
  157.          cout<<"比賽結束"<<endl;
  158.          cout<<"==========================================================|終點"<<endl;
  159.          for(int i=1;i<horse1;i++)
  160.          {
  161.          cout<<" ";
  162.      }
  163.          cout<<"◆"<<endl;
  164.          for(int i=1;i<horse2;i++)
  165.          {
  166.          cout<<" ";
  167.      }
  168.          cout<<"★"<<endl;
  169.          for(int i=1;i<horse3;i++)
  170.          {
  171.          cout<<" ";
  172.      }
  173.          cout<<"☆"<<endl;
  174.          for(int i=1;i<horse4;i++)
  175.          {
  176.          cout<<" ";
  177.      }
  178.          cout<<"●"<<endl;
  179.          cout<<"==========================================================|===="<<endl;
  180.          cout<<"你輸入的代碼:("<<num<<")"<<endl;
  181.          cout<<"你下注了"<<num1<<"元"<<endl;
  182.          cout<<"(2)★贏了!"<<endl;
  183.          if(num==2)
  184.          {
  185.          cout<<"恭喜你!你獲得了"<<num1*5<<"元"<<endl;
  186.          }
  187.          else if(num==1||num==3||num==4)
  188.          {
  189.          cout<<"真可惜!你失去了"<<num1*3<<"元"<<endl;
  190.          }
  191.          re2:
  192.          cout<<"要再玩一次嗎? (1)要  (2)不要"<<endl;
  193.          cin>>num2;
  194.          if(num2==2)
  195.          {
  196.          system("cls");
  197.          cout<<"謝謝光臨!再見!"<<endl;
  198.          }
  199.          else if(num2==1)
  200.          {
  201.          break;
  202.          }
  203.          else if(num2<1||num2>2)
  204.          {
  205.          cout<<"輸入錯誤"<<endl;
  206.          goto re2;
  207.          }
  208.          system("pause");
  209.          if(num2==1)
  210.          {
  211.          continue;
  212.          }
  213.          else
  214.          {
  215.          break;
  216.          }
  217.          }
  218.          if(horse3==60)
  219.          {
  220.          cout<<"比賽結束"<<endl;
  221.          cout<<"==========================================================|終點"<<endl;
  222.          for(int i=1;i<horse1;i++)
  223.          {
  224.          cout<<" ";
  225.      }
  226.          cout<<"◆"<<endl;
  227.          for(int i=1;i<horse2;i++)
  228.          {
  229.          cout<<" ";
  230.      }
  231.          cout<<"★"<<endl;
  232.          for(int i=1;i<horse3;i++)
  233.          {
  234.          cout<<" ";
  235.      }
  236.          cout<<"☆"<<endl;
  237.          for(int i=1;i<horse4;i++)
  238.          {
  239.          cout<<" ";
  240.      }
  241.          cout<<"●"<<endl;
  242.          cout<<"==========================================================|===="<<endl;
  243.          cout<<"你輸入的代碼:("<<num<<")"<<endl;
  244.          cout<<"你下注了"<<num1<<"元"<<endl;
  245.          cout<<"(3)☆贏了!"<<endl;
  246.          if(num==3)
  247.          {
  248.          cout<<"恭喜你!你獲得了"<<num1*5<<"元"<<endl;
  249.          }
  250.          else if(num==1||num==2||num==4)
  251.          {
  252.          cout<<"真可惜!你失去了"<<num1*3<<"元"<<endl;
  253.          }
  254.          re3:
  255.          cout<<"要再玩一次嗎?  (1)要 (2)不要"<<endl;
  256.          cin>>num2;
  257.          if(num2==2)
  258.          {
  259.          system("cls");
  260.          cout<<"謝謝光臨!再見!"<<endl;
  261.          }
  262.          else if(num2==1)
  263.          {
  264.          break;
  265.          }
  266.          else if(num2<1||num2>2)
  267.          {
  268.          cout<<"輸入錯誤"<<endl;
  269.          goto re3;
  270.          }
  271.          system("pause");
  272.          if(num2==1)
  273.          {
  274.          continue;
  275.          }
  276.          else
  277.          {
  278.          break;
  279.          }
  280.          }
  281.          if(horse4==60)
  282.          {
  283.          cout<<"比賽結束"<<endl;
  284.          cout<<"==========================================================|終點"<<endl;
  285.          for(int i=1;i<horse1;i++)
  286.          {
  287.          cout<<" ";
  288.      }
  289.          cout<<"◆"<<endl;
  290.          for(int i=1;i<horse2;i++)
  291.          {
  292.          cout<<" ";
  293.      }
  294.          cout<<"★"<<endl;
  295.          for(int i=1;i<horse3;i++)
  296.          {
  297.          cout<<" ";
  298.      }
  299.          cout<<"☆"<<endl;
  300.          for(int i=1;i<horse4;i++)
  301.          {
  302.          cout<<" ";
  303.      }
  304.          cout<<"●"<<endl;
  305.          cout<<"==========================================================|===="<<endl;
  306.          cout<<"你輸入的代碼:("<<num<<")"<<endl;
  307.          cout<<"你下注了"<<num1<<"元"<<endl;
  308.          cout<<"(4)●贏了!"<<endl;
  309.          if(num==4)
  310.          {
  311.          cout<<"恭喜你!你獲得了"<<num1*5<<"元"<<endl;
  312.          }
  313.          else if(num==1||num==2||num==3)
  314.          {
  315.          cout<<"真可惜!你失去了"<<num1*3<<"元"<<endl;
  316.          }
  317.          re4:
  318.          cout<<"要再玩一次嗎?  (1)要 (2)不要"<<endl;
  319.          cin>>num2;
  320.          if(num2==2)
  321.          {
  322.          system("cls");
  323.          cout<<"謝謝光臨!再見!"<<endl;
  324.          }
  325.          else if(num2==1)
  326.          {
  327.          break;
  328.          }
  329.          else if(num2<1||num2>2)
  330.          {
  331.          cout<<"輸入錯誤"<<endl;
  332.          goto re4;
  333.          }
  334.          system("pause");
  335.          if(num2==1)
  336.          {
  337.          continue;
  338.          }
  339.          else
  340.          {
  341.          break;
  342.          }
  343.          }
  344.          system("cls");
  345.   if(num2==2)
  346.   {
  347.   break;
  348.   }
  349.   }
  350. if(num2==2)
  351. {
  352. break;
  353. }
  354. }
  355. return 0;
  356. }
複製代碼

TOP

  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <time.h>
  4. using namespace std;
  5. int main()
  6. {     
  7.     int h1=0,h2=0,h3=0,h4=0;
  8.     srand(time(NULL));
  9.     int random=0;
  10.     cout<<"「賽馬場」"<<endl;
  11.     cout<<"|--------------------------------------------------------------------------|終點"<<endl;
  12.     cout<<"ω"<<endl;
  13.     cout<<"£"<<endl;
  14.     cout<<"Θ"<<endl;
  15.     cout<<"卍"<<endl;
  16.     while(h1!=75 && h2!=75 && h3!=75 && h4!=75)
  17.     { random=rand()%4;
  18.        if(random==0)
  19.        {  h1++;      
  20.        }
  21.        else if(random==1)
  22.        {  h2++;      
  23.        }
  24.        else if(random==2)
  25.        {  h3++;
  26.        }
  27.        else if(random==3)
  28.        {  h4++;
  29.        }
  30.        cout<<"比賽開始"<<endl;
  31.        cout<<"|----------------------------------------------------------------------------|終點"<<endl;
  32.        for(int i=1; i<=h1; i++)
  33.        {
  34.            cout<<" ";
  35.         }   
  36.         cout<<"ω"<<endl;
  37.          for(int i=1; i<=h2; i++)
  38.        {
  39.            cout<<" ";
  40.         }   
  41.         cout<<"£"<<endl;
  42.          for(int i=1; i<=h3; i++)
  43.        {
  44.            cout<<" ";
  45.         }   
  46.         cout<<"Θ"<<endl;
  47.          for(int i=1; i<=h4; i++)
  48.        {
  49.            cout<<" ";
  50.         }   
  51.         cout<<"卍"<<endl;
  52.        system("cls");
  53.          
  54.     }
  55.     system("pause");
  56.     return 0;     
  57. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<time.h>  
  4. using namespace std;
  5. int main()
  6. {
  7.     int h1=0,h2=0,h3=0,h4=0,random=0;
  8.     srand(time(NULL));
  9.     cout<<"「好事成雙」賽馬場"<<endl;
  10.     cout<<"-------------------------------------------------------------[終點"<<endl;
  11.     cout<<"●"<<endl;
  12.     cout<<"▼"<<endl;
  13.     cout<<"■"<<endl;
  14.     cout<<"★"<<endl;
  15.     while(h1!=75&&h2!=75&&h3!=75&&h4!=75)
  16.     {
  17.        random=rand()%4;
  18.      if(random==0) {
  19.            h1++;
  20.         }  
  21.         else if(random==1)
  22.         {
  23.            h2++;
  24.         }
  25.         else if(random==2)
  26.         {
  27.            h3++;
  28.         }
  29.         else if(random==3)
  30.         {
  31.            h4++;
  32.         }
  33.          cout<<"「好事成雙」賽馬場"<<endl;
  34.          cout<<"-------------------------------------------------------------[終點"<<endl;
  35.         for(int i=1; i<=h1; i++)
  36.         {
  37.            cout<<" ";
  38.         }   
  39.         cout<<"◆"<<endl;
  40.         
  41.         for(int i=1; i<=h2; i++)
  42.         {
  43.            cout<<" ";
  44.         }   
  45.         cout<<"★"<<endl;
  46.         
  47.          for(int i=1; i<=h3; i++) {
  48.            cout<<" ";
  49.         }   
  50.         cout<<"▲"<<endl;
  51.         
  52.          for(int i=1; i<=h4; i++) {
  53.            cout<<" ";
  54.         }   
  55.         cout<<"●"<<endl;      
  56.         system("cls");
  57.     }   
  58.     system("pause");
  59.     return 0;
  60.       
  61. }
複製代碼

TOP

返回列表